From fd7bf518a6cf5c73ab957c4c19a3e974fa6b9fbe Mon Sep 17 00:00:00 2001 From: Max Bernstein Date: Thu, 22 Jan 2026 12:35:11 -0500 Subject: ZJIT: Make sure to add a LIR basic block in compile failure entrypoint (#15932) We need to add a dummy block for this stub otherwise it won't be able to push any instructions. Without this, `--zjit-stats` is broken. --- zjit/src/codegen.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/zjit/src/codegen.rs b/zjit/src/codegen.rs index 870fe7584a..1729d44041 100644 --- a/zjit/src/codegen.rs +++ b/zjit/src/codegen.rs @@ -2899,6 +2899,7 @@ fn gen_string_append_codepoint(jit: &mut JITState, asm: &mut Assembler, string: /// Generate a JIT entry that just increments exit_compilation_failure and exits fn gen_compile_error_counter(cb: &mut CodeBlock, compile_error: &CompileError) -> Result { let mut asm = Assembler::new(); + asm.new_block_without_id(); gen_incr_counter(&mut asm, exit_compile_error); gen_incr_counter(&mut asm, exit_counter_for_compile_error(compile_error)); asm.cret(Qundef.into()); -- cgit v1.2.3