[cfe-commits] r169980 - /cfe/trunk/lib/Basic/SourceLocation.cpp
Benjamin Kramer
benny.kra at googlemail.com
Wed Dec 12 06:17:17 PST 2012
Author: d0k
Date: Wed Dec 12 08:17:17 2012
New Revision: 169980
URL: http://llvm.org/viewvc/llvm-project?rev=169980&view=rev
Log:
PR14581: Make SourceLocation::printToString work, or it will always return an empty string.
No test case, this is debugging code.
Modified:
cfe/trunk/lib/Basic/SourceLocation.cpp
Modified: cfe/trunk/lib/Basic/SourceLocation.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/SourceLocation.cpp?rev=169980&r1=169979&r2=169980&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/SourceLocation.cpp (original)
+++ cfe/trunk/lib/Basic/SourceLocation.cpp Wed Dec 12 08:17:17 2012
@@ -65,7 +65,7 @@
std::string S;
llvm::raw_string_ostream OS(S);
print(OS, SM);
- return S;
+ return OS.str();
}
void SourceLocation::dump(const SourceManager &SM) const {
More information about the cfe-commits
mailing list