Skip to content

Commit

Permalink
Merge pull request #11711 from crayxt/patch-1
Browse files Browse the repository at this point in the history
IRBuilder CreateCall2 removed in LLVM_SVN.
  • Loading branch information
vtjnash committed Jun 15, 2015
2 parents 108737d + 34d947e commit bd11eba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2745,9 +2745,15 @@ static Value *global_binding_pointer(jl_module_t *m, jl_sym_t *s,
builder.CreateCondBr(builder.CreateICmpNE(cachedval, initnul), have_val, not_found);
ctx->f->getBasicBlockList().push_back(not_found);
builder.SetInsertPoint(not_found);
#ifdef LLVM37
Value *bval = builder.CreateCall(prepare_call(jlgetbindingorerror_func),
{literal_pointer_val((jl_value_t*)m),
literal_pointer_val((jl_value_t*)s)});
#else
Value *bval = builder.CreateCall2(prepare_call(jlgetbindingorerror_func),
literal_pointer_val((jl_value_t*)m),
literal_pointer_val((jl_value_t*)s));
#endif
builder.CreateStore(bval, bindinggv);
builder.CreateBr(have_val);
ctx->f->getBasicBlockList().push_back(have_val);
Expand Down

0 comments on commit bd11eba

Please sign in to comment.