Skip to content

Commit

Permalink
go back to jl_object_in_image
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Feb 22, 2023
1 parent 1fe9bac commit ae77ba2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4305,7 +4305,10 @@ static jl_cgval_t emit_invoke(jl_codectx_t &ctx, const jl_cgval_t &lival, const
protoname = jl_ExecutionEngine->getFunctionAtAddress((uintptr_t)fptr, codeinst);
if (ctx.external_linkage) {
// TODO: Add !specsig support to aotcompile.cpp
if (specsig && protoname.startswith("jsys")) {
// FIXME: Need to guard against CI being allocated in image,
// but not filled in. If `fptr` non-null due to JIT compilation
// of this image, we will during loading find an empty CI.
if (specsig && jl_object_in_image((jl_value_t*)codeinst)) {
external = true;
need_to_emit = false;
}
Expand Down

0 comments on commit ae77ba2

Please sign in to comment.