Skip to content

Commit 2077aba

Browse files
committed
Fix a couple of dump() methods to add newlines.
1 parent a5502cd commit 2077aba

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/AST/ASTDumper.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2611,6 +2611,7 @@ void ProtocolConformanceRef::dump(llvm::raw_ostream &out,
26112611
out.indent(indent) << "(abstract_conformance protocol="
26122612
<< getAbstract()->getName();
26132613
PrintWithColorRAII(out, ParenthesisColor) << ')';
2614+
out << '\n';
26142615
}
26152616
}
26162617

lib/IRGen/GenProto.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2104,7 +2104,9 @@ llvm::Value *MetadataPath::followComponent(IRGenFunction &IGF,
21042104
}
21052105

21062106
void MetadataPath::dump() const {
2107-
print(llvm::errs());
2107+
auto &out = llvm::errs();
2108+
print(out);
2109+
out << '\n';
21082110
}
21092111
void MetadataPath::print(llvm::raw_ostream &out) const {
21102112
for (auto i = Path.begin(), e = Path.end(); i != e; ++i) {

0 commit comments

Comments
 (0)