projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0eedc9e
)
[mlir] Print a newline when dumping Type
author
Theodore Luo Wang
<wangtheo662@gmail.com>
Mon, 9 Jan 2023 17:33:22 +0000
(17:33 +0000)
committer
Mehdi 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
patch
|
blob
|
history
diff --git
a/mlir/lib/IR/AsmPrinter.cpp
b/mlir/lib/IR/AsmPrinter.cpp
index
5483ff1
..
bd2bc2c
100644
(file)
--- 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());