Merge pull request 'REMOVE_DIST_ARRAYS_FROM_IO: use isArrayRef' (#62) from replace_io_arrays into master
Reviewed-on: #62
This commit was merged in pull request #62.
This commit is contained in:
@@ -136,7 +136,8 @@ 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 (isArrayRef(exp) &&
|
||||||
|
strcmp(exp->symbol()->identifier(), arr->identifier()) == 0)
|
||||||
{
|
{
|
||||||
has_read |= from_read;
|
has_read |= from_read;
|
||||||
has_write |= from_write;
|
has_write |= from_write;
|
||||||
|
|||||||
Reference in New Issue
Block a user