[mlir] Print a newline when dumping Type
authorTheodore Luo Wang <wangtheo662@gmail.com>
Mon, 9 Jan 2023 17:33:22 +0000 (17:33 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Mon, 9 Jan 2023 17:33:46 +0000 (17:33 +0000)
Fixes https://github.com/llvm/llvm-project/issues/59673

Reviewed By: mehdi_amini, Mogball

Differential Revision: https://reviews.llvm.org/D141201

mlir/lib/IR/AsmPrinter.cpp

index 5483ff1..bd2bc2c 100644 (file)
@@ -3556,7 +3556,10 @@ void Type::print(raw_ostream &os, AsmState &state) const {
   AsmPrinter::Impl(os, state.getImpl()).printType(*this);
 }
 
-void Type::dump() const { print(llvm::errs()); }
+void Type::dump() const {
+  print(llvm::errs());
+  llvm::errs() << "\n";
+}
 
 void AffineMap::dump() const {
   print(llvm::errs());