fixed module analysis

This commit is contained in:
ALEXks
2025-03-23 15:15:00 +03:00
parent ddec450845
commit 6235d11eb7
2 changed files with 2 additions and 2 deletions

View File

@@ -310,7 +310,7 @@ static void getModuleSymbols(SgStatement* func, set<SgSymbol*>& symbs)
SgSymbol* s = func->symbol()->next(); SgSymbol* s = func->symbol()->next();
while (s) 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); symbs.insert(s);
s = s->next(); s = s->next();
} }

View File

@@ -1,3 +1,3 @@
#pragma once #pragma once
#define VERSION_SPF "2399" #define VERSION_SPF "2400"