REMOVE_DIST_ARRAYS_FROM_IO: STMT_STR while replacing

This commit is contained in:
2025-06-14 19:48:50 +03:00
parent 0eee799867
commit 374b6c686b

View File

@@ -136,7 +136,9 @@ static void replaceArrayRec(SgSymbol* arr, SgSymbol* replace_by, SgExpression* e
if (!exp) if (!exp)
return; return;
if (exp->symbol() && exp->symbol()->identifier() && strcmp(exp->symbol()->identifier(), arr->identifier()) == 0) if (exp->variant() != STMT_STR && exp->symbol() &&
exp->symbol()->identifier() &&
strcmp(exp->symbol()->identifier(), arr->identifier()) == 0)
{ {
has_read |= from_read; has_read |= from_read;
has_write |= from_write; has_write |= from_write;