summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan <jordan@psifertex.com>2018-10-19 09:35:24 -0400
committerGitHub <noreply@github.com>2018-10-19 09:35:24 -0400
commit5bd473ce9f0bf37eb33ea0376fd843c585060d4f (patch)
treebb1fa4f3094a64a8c54b888b7673ffd787fe8165
parentf556db4ee172437ba3177e13065cb19f01cddc2f (diff)
parent2c91b7d3678543bdc2c05c8494373b2519a6c68d (diff)
Merge pull request #1171 from DatBrick/fix_mlil_ssa
Fixed MediumLevelILInstructionBase::GetNonSSAForm
-rw-r--r--mediumlevelilinstruction.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/mediumlevelilinstruction.cpp b/mediumlevelilinstruction.cpp
index 08472004..09fdb8c6 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().GetPtr();
+ Ref<MediumLevelILFunction> ssa = function->GetSSAForm();
if (!ssa)
return *this;
size_t expr = GetSSAExprIndex();
size_t instr = GetSSAInstructionIndex();
- return MediumLevelILInstruction(ssa, ssa->GetRawExpr(GetSSAExprIndex()), expr, instr);
+ return MediumLevelILInstruction(ssa, ssa->GetRawExpr(expr), 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(GetSSAExprIndex()), expr, instr);
+ return MediumLevelILInstruction(nonSsa, nonSsa->GetRawExpr(expr), expr, instr);
}