Skip to content

Commit f96ab36

Browse files
committed
AST: Use dumpRef() instead of print() in Witness::dump() to avoid request cycles
1 parent e021d38 commit f96ab36

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/AST/ProtocolConformance.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ void Witness::dump() const { dump(llvm::errs()); }
7171
void Witness::dump(llvm::raw_ostream &out) const {
7272
out << "Witness: ";
7373
if (auto decl = this->getDecl()) {
74-
decl->print(out);
74+
decl->dumpRef(out);
75+
out << "\n";
7576
} else {
7677
out << "<no decl>\n";
7778
}

0 commit comments

Comments
 (0)