Skip to content

Commit 8315340

Browse files
committed
use an empty symbol instead of module name as placeholder for module file metadata (#57359)
Based on the discussion in #55963 (comment) (cherry picked from commit c46b533)
1 parent 102337b commit 8315340

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ JL_DLLEXPORT jl_module_t *jl_new_module_(jl_sym_t *name, jl_module_t *parent, ui
229229
m->compile = -1;
230230
m->infer = -1;
231231
m->max_methods = -1;
232-
m->file = name; // Using the name as a placeholder is better than nothing
232+
m->file = jl_empty_sym;
233233
m->line = 0;
234234
m->hash = parent == NULL ? bitmix(name->hash, jl_module_type->hash) :
235235
bitmix(name->hash, parent->hash);

0 commit comments

Comments
 (0)