REMOVE_DIST_ARRAYS_FROM_IO: use more general isSgVarListDeclStmt and isSgNestedVarListDeclStmt functions

This commit is contained in:
2025-09-25 20:43:17 +03:00
parent d7072257c6
commit 767bc19739

View File

@@ -19,7 +19,7 @@ using std::pair;
static inline bool isArrayDeclaration(SgStatement* st) static inline bool isArrayDeclaration(SgStatement* st)
{ {
return isSgDeclarationStatement(st) || st->variant() == DIM_STAT || st->variant() == COMM_STAT; return isSgDeclarationStatement(st) || isSgVarListDeclStmt(st) || isSgNestedVarListDeclStmt(st);
} }
static SgExpression* findExprWithVariant(SgExpression* exp, int variant) static SgExpression* findExprWithVariant(SgExpression* exp, int variant)