diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/subflow.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/subflow.cc index bde73ee843..966d805677 100644 --- a/Ghidra/Features/Decompiler/src/decompile/cpp/subflow.cc +++ b/Ghidra/Features/Decompiler/src/decompile/cpp/subflow.cc @@ -2652,8 +2652,8 @@ bool SubfloatFlow::traceForward(TransformVar *rvn) } if (preexistingGuard(slot, rvn2)) { TransformOp *rop = newPreexistingOp(2, op->code(), op); - opSetInput(rop, rvn, 0); - opSetInput(rop, rvn2, 1); + opSetInput(rop, rvn, slot); + opSetInput(rop, rvn2, 1 - slot); terminatorCount += 1; } break;