[LLVMbugs] [Bug 3746] New: Crash in isel with GEP of function pointer

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Mar 6 22:26:21 PST 2009


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

           Summary: Crash in isel with GEP of function pointer
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu


Testcase:
define void @a() {
  getelementptr i32()* null, i32 1
  ret void
}

Run through llvm-as | llc, gives the following:
llc: /home/eli/llvm/lib/Target/TargetData.cpp:468: unsigned char
llvm::TargetData::getAlignment(const llvm::Type*, bool) const: Assertion
`Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"' failed.

Possibly the verifier should catch this... but there are regression tests that
depend on GEPs of unsized types (!).  In any case, crashing isn't nice.


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