fixed module analysis
This commit is contained in:
@@ -310,7 +310,7 @@ static void getModuleSymbols(SgStatement* func, set<SgSymbol*>& symbs)
|
||||
SgSymbol* s = func->symbol()->next();
|
||||
while (s)
|
||||
{
|
||||
if (IS_BY_USE(s) && s->scope()->symbol()->identifier() == currScope)
|
||||
if (IS_BY_USE(s) && s->scope() && s->scope()->symbol()->identifier() == currScope)
|
||||
symbs.insert(s);
|
||||
s = s->next();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user