summaryrefslogtreecommitdiff
path: root/yjit
diff options
context:
space:
mode:
authorAlan Wu <alanwu@ruby-lang.org>2023-03-31 15:19:02 -0400
committerAlan Wu <alanwu@ruby-lang.org>2023-03-31 15:19:02 -0400
commit8938f146abd49411b0d20b48675c16d61f58927c (patch)
treef95d60432e557139f26c4d78dfa1f078e1996174 /yjit
parenta9b6b25de53b6cb324666f0114789c5f48f877db (diff)
downloadruby-8938f146abd49411b0d20b48675c16d61f58927c.tar.gz
YJIT: Remove unused variable [ci skip]
Diffstat (limited to 'yjit')
-rw-r--r--yjit/src/codegen.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs
index f754e4915d..b18c855b7a 100644
--- a/yjit/src/codegen.rs
+++ b/yjit/src/codegen.rs
@@ -4836,7 +4836,7 @@ fn gen_push_frame(
// For an iseq call PC may be None, in which case we will not set PC and will allow jitted code
// to set it as necessary.
- let _pc = if let Some(pc) = frame.pc {
+ if let Some(pc) = frame.pc {
asm.mov(cfp_opnd(RUBY_OFFSET_CFP_PC), pc.into());
};
asm.mov(cfp_opnd(RUBY_OFFSET_CFP_BP), sp);