We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04eeea8 commit 4f26407Copy full SHA for 4f26407
midend/hsIndexSimplify.cpp
@@ -20,6 +20,7 @@ void HSIndexFinder::addNewVariable() {
20
if (locals != nullptr && (arrayIndex->right->is<IR::Operation_Ternary>() ||
21
arrayIndex->right->is<IR::Operation_Binary>() ||
22
arrayIndex->right->is<IR::Operation_Unary>() ||
23
+ arrayIndex->right->is<IR::MethodCallExpression>() ||
24
arrayIndex->right->is<IR::PathExpression>())) {
25
// Generate new local variable if needed.
26
std::ostringstream ostr;
0 commit comments