summaryrefslogtreecommitdiff
path: root/mediumlevelilinstruction.cpp
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2018-10-19 10:28:33 -0400
committerPeter LaFosse <peter@vector35.com>2018-10-19 10:28:33 -0400
commitd92a81a5d0812c9c19b2feddb8927a775cfc0da0 (patch)
tree86a3c191dd1952b208d8c8f5f9b2118f48e1672f /mediumlevelilinstruction.cpp
parentf0b34389d710dc2d7b7ca23cb0528e44ec0bb131 (diff)
Reverting busted PR to 'Fixed MediumLevelILInstructionBase::GetNonSSAForm'
Diffstat (limited to 'mediumlevelilinstruction.cpp')
-rw-r--r--mediumlevelilinstruction.cpp6
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);
}