[LLVMbugs] [Bug 6422] New: globalopt crashes in OptimizeGlobalAddressOfMalloc

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Feb 25 09:59:22 PST 2010


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

           Summary: globalopt crashes in OptimizeGlobalAddressOfMalloc
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: kevin.fan at gmail.com
                CC: llvmbugs at cs.uiuc.edu


opt -globalopt short.bc causes a core dump. The attached test case was reduced
by bugpoint from 300.twolf, and further reduced by hand.

The thing that might be tripping up globalopt is the fact that the argument to
malloc is of type i32 rather than i64, even though the target triple is a
64-bit machine. I'm not sure why my llvm-gcc is generating that, but I imagine
it shouldn't cause globalopt to crash.

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