aboutsummaryrefslogtreecommitdiffstats
path: root/yjit
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2023-10-17 12:14:56 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2023-10-17 15:24:55 -0400
commit2abd061e8beefbdead0296377948ce7a0098277b (patch)
tree4f37b73a59008bb87e899c0be5b59d7ab088bb84 /yjit
parent776d4dec69c81e2c94c36648205f513baa05551f (diff)
downloadruby-2abd061e8beefbdead0296377948ce7a0098277b.tar.gz
YJIT: Remove call to compile() on empty Assembler
Diffstat (limited to 'yjit')
-rw-r--r--yjit/src/codegen.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs
index b83fc80366..d396243f1c 100644
--- a/yjit/src/codegen.rs
+++ b/yjit/src/codegen.rs
@@ -7760,16 +7760,13 @@ fn gen_invokesuper_specialized(
fn gen_leave(
_jit: &mut JITState,
asm: &mut Assembler,
- ocb: &mut OutlinedCb,
+ _ocb: &mut OutlinedCb,
) -> Option<CodegenStatus> {
// Only the return value should be on the stack
assert_eq!(1, asm.ctx.get_stack_size(), "leave instruction expects stack size 1, but was: {}", asm.ctx.get_stack_size());
- let ocb_asm = Assembler::new();
-
// Check for interrupts
gen_check_ints(asm, Counter::leave_se_interrupt);
- ocb_asm.compile(ocb.unwrap(), None);
// Pop the current frame (ec->cfp++)
// Note: the return PC is already in the previous CFP