private_removing: fix bugreport_1712578151
This commit is contained in:
@@ -1642,6 +1642,9 @@ static vector<DefUseStmtsPair> buildDefUsePairs(Context* ctx, const CFG_Type& CF
|
|||||||
for (auto& instruction : blockInstructionsVector)
|
for (auto& instruction : blockInstructionsVector)
|
||||||
{
|
{
|
||||||
SgStatement* stmt = instruction->getInstruction()->getOperator();
|
SgStatement* stmt = instruction->getInstruction()->getOperator();
|
||||||
|
if (stmt == useInsertedStmt.insertedStmt)
|
||||||
|
break;
|
||||||
|
|
||||||
if (stmt->variant() == ASSIGN_STAT
|
if (stmt->variant() == ASSIGN_STAT
|
||||||
&& stmt->expr(0)->symbol()->identifier() == defVarName
|
&& stmt->expr(0)->symbol()->identifier() == defVarName
|
||||||
&& !isVarChangedBetween(defVarName, stmt, useInsertedStmt.insertedStmt))
|
&& !isVarChangedBetween(defVarName, stmt, useInsertedStmt.insertedStmt))
|
||||||
|
|||||||
Reference in New Issue
Block a user