From c9ed59c2e2ee46080adcd4434808ef42c298565e Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 14 Feb 2024 12:02:58 -0800 Subject: [PATCH] Update yjit/src/codegen.rs Co-authored-by: Takashi Kokubun --- yjit/src/codegen.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs index e080905ea0..f9ced12b37 100644 --- a/yjit/src/codegen.rs +++ b/yjit/src/codegen.rs @@ -5399,10 +5399,8 @@ fn jit_rb_str_getbyte( let index = asm.stack_opnd(0); let recv = asm.stack_opnd(1); - let arg0_type = asm.ctx.get_opnd_type(index.into()); - // rb_str_getbyte should be leaf if the index is a fixnum - if arg0_type != Type::Fixnum { + if asm.ctx.get_opnd_type(index.into()) != Type::Fixnum { // Raises when non-integers are passed in jit_prepare_non_leaf_call(jit, asm); }