[LLVMbugs] [Bug 14581] New: SourceLocation::printToString not working

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Dec 11 18:19:56 PST 2012


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: unassignedclangbugs at nondot.org
        ReportedBy: geometric.wanderer at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    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.



More information about the llvm-bugs mailing list