Skip to content

Commit

Permalink
Allow method calls in index expressions in hsIndexSimplify
Browse files Browse the repository at this point in the history
  • Loading branch information
vlstill committed Nov 13, 2023
1 parent 04eeea8 commit 6aa95c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions midend/hsIndexSimplify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ void HSIndexFinder::addNewVariable() {
if (locals != nullptr && (arrayIndex->right->is<IR::Operation_Ternary>() ||
arrayIndex->right->is<IR::Operation_Binary>() ||
arrayIndex->right->is<IR::Operation_Unary>() ||
arrayIndex->right->is<IR::MethodCallExpression>() ||
arrayIndex->right->is<IR::PathExpression>())) {
// Generate new local variable if needed.
std::ostringstream ostr;
Expand Down

0 comments on commit 6aa95c3

Please sign in to comment.