fixed findArrayRef in loop_graph

This commit is contained in:
ALEXks
2025-06-14 12:20:34 +03:00
parent a0704038db
commit 10636427ed
3 changed files with 4 additions and 2 deletions

View File

@@ -3219,12 +3219,14 @@ bool isArrayRef(SgExpression* ex)
{
SgArrayRefExp* arrayRef = isSgArrayRefExp(ex);
if (arrayRef)
{
if (isArrayType(ex->symbol()->type()))
{
auto type = isSgArrayType(ex->symbol()->type());
if (type && type->dimension())
return true;
}
}
}
return false;
}