Skip to content

Commit

Permalink
Print right number of parentheses for LoadNode (apache#5965)
Browse files Browse the repository at this point in the history
Stop printing the unnecessary ')' after each LoadNode that didn't
have a matching '('.
  • Loading branch information
Krzysztof Parzyszek authored and zhiics committed Jul 2, 2020
1 parent 70409b7 commit fb5093a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/printer/tir_text_printer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ Doc TIRTextPrinter::VisitExpr_(const ProducerLoadNode* op) {
Doc TIRTextPrinter::VisitExpr_(const LoadNode* op) {
Doc doc;
doc << "(" << PrintDType(op->dtype) << "*)" << Print(op->buffer_var) << "[" << Print(op->index)
<< "])";
<< "]";
if (!is_one(op->predicate)) {
doc << " if " << Print(op->predicate);
}
Expand Down

0 comments on commit fb5093a

Please sign in to comment.