fix bind for @dynamicCompileEmit

This commit is contained in:
Ivan 2018-04-10 00:16:27 +03:00
parent 9386295f91
commit 355b4cb46b
3 changed files with 6 additions and 5 deletions

View file

@ -117,7 +117,9 @@ GlobalValsMap createGlobalValsFilter(IRState *irs) {
newFunctions.reserve(irs->dynamicCompiledFunctions.size());
for (auto &&it : irs->dynamicCompiledFunctions) {
ret.insert({it.first, GlobalValVisibility::External});
auto vis = (it.second.thunkVar != nullptr ? GlobalValVisibility::External
: GlobalValVisibility::Internal);
ret.insert({it.first, vis});
newFunctions.push_back(it.first);
}