[LLVMbugs] [Bug 4085] New: CppWriter::progname is not initialized

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Apr 26 19:38:02 PDT 2009


http://llvm.org/bugs/show_bug.cgi?id=4085

           Summary: CppWriter::progname is not initialized
           Product: new-bugs
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: abbeyj at gmail.com
                CC: llvmbugs at cs.uiuc.edu


CppWriter::progname is never initialized but it is used in CppWriter::error(). 
This leads to a crash if error() is ever called.

Steps to Reproduce:
$ cat temp.ll
; x86_fp80 not supported by CppWriter
@x = common global x86_fp80 0xK00000000000000000000

$ llvm-as temp.ll
$ llc -march=cpp temp.bc


Actual Results:
Crash inside iostream

Expected Results:
Print "llc: Invalid primitive type"


-- 
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