fixed
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user