Skip to content

Commit

Permalink
Add missing jl_emit_codeinst failure check
Browse files Browse the repository at this point in the history
  • Loading branch information
topolarity committed Aug 19, 2024
1 parent e77fe22 commit 66eed8a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/aotcompile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,13 @@ void *jl_create_native_impl(jl_array_t *methods, LLVMOrcThreadSafeModuleRef llvm
jl_llvm_functions_t decls = jl_emit_codeinst(result_m, codeinst, NULL, params);
if (result_m)
params.compiled_functions[codeinst] = {std::move(result_m), std::move(decls)};
else if (jl_options.trim != JL_TRIM_NO) {
// if we're building a small image, we need to compile everything
// to ensure that we have all the information we need.
jl_safe_printf("codegen failed to compile code root");
jl_(mi);
abort();
}
}
}
} else if (this_world != jl_typeinf_world) {
Expand Down

0 comments on commit 66eed8a

Please sign in to comment.