Skip to content

Commit 29f2f89

Browse files
authored
aotcompile: avoid cache lookup when disallowed (#39265)
Fix #38548
1 parent 642a88c commit 29f2f89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codegen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4620,7 +4620,7 @@ static Function *emit_tojlinvoke(jl_code_instance_t *codeinst, Module *M, jl_cod
46204620
ctx.builder.SetInsertPoint(b0);
46214621
Function *theFunc;
46224622
Value *theFarg;
4623-
if (codeinst->invoke != NULL) {
4623+
if (params.cache && codeinst->invoke != NULL) {
46244624
StringRef theFptrName = jl_ExecutionEngine->getFunctionAtAddress((uintptr_t)codeinst->invoke, codeinst);
46254625
theFunc = cast<Function>(
46264626
M->getOrInsertFunction(theFptrName, jlinvoke_func->_type(jl_LLVMContext)).getCallee());

0 commit comments

Comments
 (0)