http://llvm.org/bugs/show_bug.cgi?id=14581
Bug #: 14581
Summary: SourceLocation::printToString not working
Product: clang
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
The string returned by SourceLocation::printToString is always empty.
raw_string_ostream's destructor needs to be called before constructing the
return value.
Quick fix: call OS.flush() before return S.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs