This commit is contained in:
ALEXks
2025-01-12 17:48:08 +03:00
parent fe7345aab0
commit 95cfb4446b

View File

@@ -1509,8 +1509,8 @@ static void insertDeclare(const set<DIST::Array*>& usedArraysInRegions,
if (std::count(usedAll.begin(), usedAll.end(), realArray) == 0 && added.count(realArray) == 0) if (std::count(usedAll.begin(), usedAll.end(), realArray) == 0 && added.count(realArray) == 0)
{ {
added.insert(realArray); added.insert(realArray);
//TODO: for modules //TODO: for common
if (realArray->GetLocation().first != DIST::l_MODULE) if (realArray->GetLocation().first != DIST::l_COMMON)
{ {
auto declInfo = *realArray->GetDeclInfo().begin(); auto declInfo = *realArray->GetDeclInfo().begin();
SgStatement* declStat = SgStatement::getStatementByFileAndLine(declInfo.first, declInfo.second); SgStatement* declStat = SgStatement::getStatementByFileAndLine(declInfo.first, declInfo.second);