From fb5093a523dff3482ad1083d2a8a2e3b53d6d237 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Tue, 30 Jun 2020 17:25:33 -0500 Subject: [PATCH] Print right number of parentheses for LoadNode (#5965) Stop printing the unnecessary ')' after each LoadNode that didn't have a matching '('. --- src/printer/tir_text_printer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/printer/tir_text_printer.cc b/src/printer/tir_text_printer.cc index ca038abab819..0de7215ac71e 100644 --- a/src/printer/tir_text_printer.cc +++ b/src/printer/tir_text_printer.cc @@ -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); }