private_removing: fix bug in expression substitution
This commit is contained in:
@@ -468,9 +468,7 @@ static SgExpression* substituteExpressions(SgExpression* exp,
|
||||
if (exp->variant() == ARRAY_REF)
|
||||
{
|
||||
const auto& refToExp = refToExpMap.find(exp->unparse());
|
||||
if (refToExp == refToExpMap.end())
|
||||
return exp;
|
||||
|
||||
if (refToExp != refToExpMap.end())
|
||||
return refToExp->second;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user