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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs