Skip to content

Commit

Permalink
toplevel.c: move stray comment
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKarpinski committed Jan 3, 2018
1 parent 86a08e4 commit 144f79b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/toplevel.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ jl_value_t *jl_eval_module_expr(jl_module_t *parent_module, jl_expr_t *ex)
jl_module_t *newm = jl_new_module(name);
jl_value_t *defaultdefs = NULL, *form = NULL;
JL_GC_PUSH4(&last_module, &defaultdefs, &form, &newm);
// copy parent environment info into submodule
jl_sym_t *envinfo_sym = jl_symbol("#ENVINFO");
jl_value_t *envinfo = jl_get_global(parent_module, envinfo_sym);
if (envinfo && envinfo != jl_nothing)
Expand All @@ -190,7 +191,6 @@ jl_value_t *jl_eval_module_expr(jl_module_t *parent_module, jl_expr_t *ex)
newm->parent = parent_module;
b->value = (jl_value_t*)newm;
jl_gc_wb_binding(b, newm);
// copy parent environment into submodule
}
// Assume `newm` is globally reachable at this point.

Expand Down

0 comments on commit 144f79b

Please sign in to comment.