Skip to content

Commit 0dca08f

Browse files
committed
[Basic] Disable body of broken Located<T>::dump() method
Newer clangs are more reliable about emitting templated methods that are marked "used".
1 parent 6e7521a commit 0dca08f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/Basic/Located.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,9 @@ void Located<T>::dump() const {
2020

2121
template<typename T>
2222
void Located<T>::dump(raw_ostream &os) const {
23-
os << Loc << " " << Item;
23+
// FIXME: The following does not compile on newer clangs because operator<<
24+
// does not exist for SourceLoc. More so, the operator does not exist because
25+
// one needs a SourceManager reference and buffer ID to convert any given
26+
// SourceLoc into line and column information.
27+
//os << Loc << " " << Item;
2428
}

0 commit comments

Comments
 (0)