Fix use of wrong environment for name mangling.
This commit is contained in:
parent
418126ac1f
commit
77c9b27b26
|
@ -54,7 +54,7 @@ void compiler::translate() {
|
|||
}
|
||||
for(auto& defn : global_defs.defs_defn) {
|
||||
auto& function = defn.second->into_global(global_scp);
|
||||
global_env->set_mangled_name(defn.first, function.name);
|
||||
defn.second->env->set_mangled_name(defn.first, function.name);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user