summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--yjit/src/codegen.rs4
1 files changed, 1 insertions, 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);
}