fixes
This commit is contained in:
@@ -287,7 +287,6 @@ void ArrayConstantPropagation(SgProject& project)
|
||||
|
||||
if (!file)
|
||||
continue;
|
||||
|
||||
const int funcNum = file->numberOfFunctions();
|
||||
for (int i = 0; i < funcNum; ++i)
|
||||
{
|
||||
@@ -327,7 +326,10 @@ void ArrayConstantPropagation(SgProject& project)
|
||||
if (scope)
|
||||
funcStarts.insert(scope);
|
||||
}
|
||||
for (const auto& st: funcStarts)
|
||||
for (const auto& st : funcStarts)
|
||||
{
|
||||
SgFile::switchToFile(st->fileName());
|
||||
InsertCommonAndDeclsForFunction(st, variablesToAdd);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user