Skip to content

Commit

Permalink
Print right number of parentheses for LoadNode (#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 Jun 30, 2020
1 parent 44194d0 commit 36a0bf9
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 36a0bf9

Please sign in to comment.