diff options
| -rw-r--r-- | mediumlevelilinstruction.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mediumlevelilinstruction.cpp b/mediumlevelilinstruction.cpp index 09fdb8c6..08472004 100644 --- a/mediumlevelilinstruction.cpp +++ b/mediumlevelilinstruction.cpp @@ -1161,12 +1161,12 @@ size_t MediumLevelILInstructionBase::GetNonSSAExprIndex() const MediumLevelILInstruction MediumLevelILInstructionBase::GetSSAForm() const { - Ref<MediumLevelILFunction> ssa = function->GetSSAForm(); + Ref<MediumLevelILFunction> ssa = function->GetSSAForm().GetPtr(); if (!ssa) return *this; size_t expr = GetSSAExprIndex(); size_t instr = GetSSAInstructionIndex(); - return MediumLevelILInstruction(ssa, ssa->GetRawExpr(expr), expr, instr); + return MediumLevelILInstruction(ssa, ssa->GetRawExpr(GetSSAExprIndex()), expr, instr); } @@ -1177,7 +1177,7 @@ MediumLevelILInstruction MediumLevelILInstructionBase::GetNonSSAForm() const return *this; size_t expr = GetNonSSAExprIndex(); size_t instr = GetNonSSAInstructionIndex(); - return MediumLevelILInstruction(nonSsa, nonSsa->GetRawExpr(expr), expr, instr); + return MediumLevelILInstruction(nonSsa, nonSsa->GetRawExpr(GetSSAExprIndex()), expr, instr); } |
