summaryrefslogtreecommitdiff
path: root/yjit/src/backend
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-04-13 09:20:29 -0700
committerGitHub <noreply@github.com>2023-04-13 12:20:29 -0400
commit2fcd3ea6d8d7d2c9894b7ba0483cb8aab3ce55cf (patch)
treed05b9e8975967c37171ab63e4e579207f8ef7510 /yjit/src/backend
parent847813ab132019ae541a163a82ac13055b7a82ed (diff)
downloadruby-2fcd3ea6d8d7d2c9894b7ba0483cb8aab3ce55cf.tar.gz
YJIT: Move stack_opnd from Context to Assembler (#7700)
Diffstat (limited to 'yjit/src/backend')
-rw-r--r--yjit/src/backend/ir.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/yjit/src/backend/ir.rs b/yjit/src/backend/ir.rs
index b5442a063b..d22a5ff55b 100644
--- a/yjit/src/backend/ir.rs
+++ b/yjit/src/backend/ir.rs
@@ -1093,7 +1093,7 @@ impl Assembler
for stack_idx in 0..u8::min(MAX_REG_TEMPS, self.ctx.get_stack_size()) {
if self.get_reg_temps().get(stack_idx) {
let idx = self.ctx.get_stack_size() - 1 - stack_idx;
- self.spill_temp(self.ctx.stack_opnd(idx.into()));
+ self.spill_temp(self.stack_opnd(idx.into()));
}
}
}