From 2abd061e8beefbdead0296377948ce7a0098277b Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Tue, 17 Oct 2023 12:14:56 -0400 Subject: [PATCH] YJIT: Remove call to compile() on empty Assembler --- yjit/src/codegen.rs | 5 +---- 1 file changed, 1 insertion(+), 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 { // 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