[mlir] NFC - Drop newline form BlockArgument printing.
authorNicolas Vasilache <nicolas.vasilache@gmail.com>
Wed, 16 Jun 2021 11:10:00 +0000 (11:10 +0000)
committerNicolas Vasilache <nicolas.vasilache@gmail.com>
Wed, 16 Jun 2021 13:28:43 +0000 (13:28 +0000)
Differential Revision: https://reviews.llvm.org/D104368

mlir/lib/IR/AsmPrinter.cpp

index 4356b14..7936964 100644 (file)
@@ -2742,7 +2742,7 @@ void Value::print(raw_ostream &os) {
   // TODO: Improve BlockArgument print'ing.
   BlockArgument arg = this->cast<BlockArgument>();
   os << "<block argument> of type '" << arg.getType()
-     << "' at index: " << arg.getArgNumber() << '\n';
+     << "' at index: " << arg.getArgNumber();
 }
 void Value::print(raw_ostream &os, AsmState &state) {
   if (auto *op = getDefiningOp())
@@ -2751,7 +2751,7 @@ void Value::print(raw_ostream &os, AsmState &state) {
   // TODO: Improve BlockArgument print'ing.
   BlockArgument arg = this->cast<BlockArgument>();
   os << "<block argument> of type '" << arg.getType()
-     << "' at index: " << arg.getArgNumber() << '\n';
+     << "' at index: " << arg.getArgNumber();
 }
 
 void Value::dump() {