[Mlir-commits] [mlir] b377583 - [mlir] Print a newline when dumping Type

Mehdi Amini llvmlistbot at llvm.org
Mon Jan 9 09:34:15 PST 2023


Author: Theodore Luo Wang
Date: 2023-01-09T17:33:46Z
New Revision: b37758356a39bca8bed3d4e83169254b124ac2df

URL: https://github.com/llvm/llvm-project/commit/b37758356a39bca8bed3d4e83169254b124ac2df
DIFF: https://github.com/llvm/llvm-project/commit/b37758356a39bca8bed3d4e83169254b124ac2df.diff

LOG: [mlir] Print a newline when dumping Type

Fixes https://github.com/llvm/llvm-project/issues/59673

Reviewed By: mehdi_amini, Mogball

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

Added: 
    

Modified: 
    mlir/lib/IR/AsmPrinter.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/IR/AsmPrinter.cpp b/mlir/lib/IR/AsmPrinter.cpp
index 5483ff145136f..bd2bc2c935356 100644
--- a/mlir/lib/IR/AsmPrinter.cpp
+++ b/mlir/lib/IR/AsmPrinter.cpp
@@ -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());


        


More information about the Mlir-commits mailing list