Skip to content

Commit

Permalink
Updated function printer beginExpression.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquinffernandez committed May 31, 2023
1 parent 3910f09 commit 73e8f60
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/mmoc/ir/helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,10 @@ string FunctionPrinter::beginExpression(string token, Option<Range> range) const
stringstream buffer;
if (range) {
buffer << "if (_is_var" << token << "(idx)) {" << endl;
} else {
buffer << TAB << "case " << token << ": {" << endl;
}
if (range) {
buffer << TAB << "_get" << token << "_idxs(idx);" << endl;
range->addLocalVariables();
} else {
buffer << TAB << "case " << token << ": {" << endl;
}
return buffer.str();
}
Expand Down

0 comments on commit 73e8f60

Please sign in to comment.