ZJIT: Bail out of recursive compilation if we can't compile callee

Right now we just crash if we can't compile an ISEQ for any reason
(unimplemented in HIR, unimplemented in codegen, ...) and this fixes
that by bailing out.
This commit is contained in:
Max Bernstein 2025-05-15 16:55:38 -04:00 committed by Aaron Patterson
parent d67d169aea
commit 6b10d40157
Notes: git 2025-05-15 22:31:16 +00:00

View File

@ -126,6 +126,9 @@ fn gen_iseq_entry_point(iseq: IseqPtr) -> *const u8 {
asm.ccall(callee_addr, vec![]);
});
branch_iseqs.extend(callee_branch_iseqs);
} else {
// Failed to compile the callee. Bail out of compiling this graph of ISEQs.
return std::ptr::null();
}
}