Skip to content

Commit a88bd15

Browse files
authored
[AutoDiff] Remove raw_ostream & argument from IndexSubset::dump. (swiftlang#31675)
Remove `llvm::raw_ostream &` argument so that `IndexSubset::dump` can be called in lldb without issue.
1 parent 2ea4316 commit a88bd15

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

include/swift/AST/IndexSubset.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ class IndexSubset : public llvm::FoldingSetNode {
207207
}
208208

209209
void print(llvm::raw_ostream &s = llvm::outs()) const;
210-
SWIFT_DEBUG_DUMPER(dump(llvm::raw_ostream &s = llvm::errs()));
210+
SWIFT_DEBUG_DUMPER(dump());
211211

212212
int findNext(int startIndex) const;
213213
int findFirst() const { return findNext(-1); }

lib/AST/IndexSubset.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ void IndexSubset::print(llvm::raw_ostream &s) const {
8686
s << '}';
8787
}
8888

89-
void IndexSubset::dump(llvm::raw_ostream &s) const {
89+
void IndexSubset::dump() const {
90+
auto &s = llvm::errs();
9091
s << "(index_subset capacity=" << capacity << " indices=(";
9192
interleave(getIndices(), [&s](unsigned i) { s << i; },
9293
[&s] { s << ", "; });

0 commit comments

Comments
 (0)