Skip to content

Commit

Permalink
aotcompile: avoid cache lookup when disallowed (JuliaLang#39265)
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash authored and antoine-levitt committed May 9, 2021
1 parent b7c97ba commit e8c2490
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 e8c2490

Please sign in to comment.