Skip to content

Commit

Permalink
aotcompile: avoid cache lookup when disallowed (#39265)
Browse files Browse the repository at this point in the history
Fix #38548
  • Loading branch information
vtjnash authored Jan 18, 2021
1 parent 642a88c commit 29f2f89
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 @@ -4620,7 +4620,7 @@ static Function *emit_tojlinvoke(jl_code_instance_t *codeinst, Module *M, jl_cod
ctx.builder.SetInsertPoint(b0);
Function *theFunc;
Value *theFarg;
if (codeinst->invoke != NULL) {
if (params.cache && codeinst->invoke != NULL) {
StringRef theFptrName = jl_ExecutionEngine->getFunctionAtAddress((uintptr_t)codeinst->invoke, codeinst);
theFunc = cast<Function>(
M->getOrInsertFunction(theFptrName, jlinvoke_func->_type(jl_LLVMContext)).getCallee());
Expand Down

0 comments on commit 29f2f89

Please sign in to comment.