diff options
| author | Max Bernstein <rubybugs@bernsteinbear.com> | 2026-01-22 12:35:11 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-22 12:35:11 -0500 |
| commit | fd7bf518a6cf5c73ab957c4c19a3e974fa6b9fbe (patch) | |
| tree | fc187d85724ea0f0c6e4ec089df312b9c02b7ed0 | |
| parent | a7a0c36b2002c65ceafca592a4837c261426ab62 (diff) | |
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.
| -rw-r--r-- | zjit/src/codegen.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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<CodePtr, CompileError> { 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()); |
