Skip to content

Commit

Permalink
Fix threading sysimg
Browse files Browse the repository at this point in the history
The global variable is local and needs to be specified when looking it up.
  • Loading branch information
yuyichao committed Feb 15, 2016
1 parent 4eedd2e commit 6866859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3656,7 +3656,7 @@ static void finalize_gc_frame(Function *F)
#ifdef JULIA_ENABLE_THREADING
if (imaging_mode) {
Value *getter;
if (GlobalVariable *GV = M->getGlobalVariable(jltls_states_func_ptr->getName())) {
if (GlobalVariable *GV = M->getGlobalVariable(jltls_states_func_ptr->getName(), true /* AllowLocal */)) {
getter = tbaa_decorate(tbaa_const, new LoadInst(GV, "", ptlsStates));
}
else {
Expand Down

0 comments on commit 6866859

Please sign in to comment.