From b37758356a39bca8bed3d4e83169254b124ac2df Mon Sep 17 00:00:00 2001 From: Theodore Luo Wang Date: Mon, 9 Jan 2023 17:33:22 +0000 Subject: [PATCH] [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 --- mlir/lib/IR/AsmPrinter.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mlir/lib/IR/AsmPrinter.cpp b/mlir/lib/IR/AsmPrinter.cpp index 5483ff1..bd2bc2c 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()); -- 2.7.4