From d92a81a5d0812c9c19b2feddb8927a775cfc0da0 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Fri, 19 Oct 2018 10:28:33 -0400 Subject: Reverting busted PR to 'Fixed MediumLevelILInstructionBase::GetNonSSAForm' --- mediumlevelilinstruction.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mediumlevelilinstruction.cpp') 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 ssa = function->GetSSAForm(); + Ref 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); } -- cgit v1.3.1