diff options
| author | Brick <samuelwilde@hotmail.com> | 2018-10-19 11:51:38 +0100 |
|---|---|---|
| committer | Brick <samuelwilde@hotmail.com> | 2018-10-19 11:51:38 +0100 |
| commit | 2c91b7d3678543bdc2c05c8494373b2519a6c68d (patch) | |
| tree | bb1fa4f3094a64a8c54b888b7673ffd787fe8165 /mediumlevelilinstruction.cpp | |
| parent | f556db4ee172437ba3177e13065cb19f01cddc2f (diff) | |
Fixed MediumLevelILInstructionBase::GetNonSSAForm
Diffstat (limited to 'mediumlevelilinstruction.cpp')
| -rw-r--r-- | mediumlevelilinstruction.cpp | 6 |
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); } |
