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