diff options
| author | Max Bernstein <max.bernstein@shopify.com> | 2025-02-07 11:43:58 -0500 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2025-04-18 21:52:57 +0900 |
| commit | cb8b6a34436273b57afe31ca20b3014a890fe862 (patch) | |
| tree | e1db08f4583813198636242267c0228107ca241b | |
| parent | 9cec9a5c1ebdaa83f9825371b954ed2ffe4aec32 (diff) | |
Fix opt_plus/opt_lt param order
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13131
| -rw-r--r-- | zjit/src/ir.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zjit/src/ir.rs b/zjit/src/ir.rs index 9adf572e9f..23fa65a6d7 100644 --- a/zjit/src/ir.rs +++ b/zjit/src/ir.rs @@ -436,13 +436,13 @@ pub fn iseq_to_ssa(iseq: *const rb_iseq_t) -> Function { YARVINSN_opt_plus => { let v0 = state.pop(); let v1 = state.pop(); - state.push(Opnd::Insn(fun.push_insn(block, Insn::Send { self_val: v0, call_info: CallInfo { name: "+".into() }, args: vec![v1] }))); + state.push(Opnd::Insn(fun.push_insn(block, Insn::Send { self_val: v1, call_info: CallInfo { name: "+".into() }, args: vec![v0] }))); } YARVINSN_opt_lt => { let v0 = state.pop(); let v1 = state.pop(); - state.push(Opnd::Insn(fun.push_insn(block, Insn::Send { self_val: v0, call_info: CallInfo { name: "<".into() }, args: vec![v1] }))); + state.push(Opnd::Insn(fun.push_insn(block, Insn::Send { self_val: v1, call_info: CallInfo { name: "<".into() }, args: vec![v0] }))); } YARVINSN_opt_aset => { let set = state.pop(); |
