http://llvm.org/bugs/show_bug.cgi?id=6102
Summary: assertion "Not all catch info was assigned to a landing
pad!"
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Common Code Generator Code
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Created an attachment (id=4084)
--> (http://llvm.org/bugs/attachment.cgi?id=4084)
testcase
Not sure if this is a code generator or an optimizer problem.
In the attached testcase, llvm.eh.selector is called in a bblock which is a
target of an invoke, but the invoke is optimized away by 'opt' since it is in
an unreachable bblock, causing llc to crash with the following assertion:
llc: SelectionDAGISel.cpp:355: virtual bool
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&): Assertion
`FuncInfo->CatchInfoFound.size() == FuncInfo->CatchInfoLost.size() && "Not all
catch info was assigned to a landing pad!"' failed.
To reproduce:
llvm-as -o bug.bc bug.ll && opt bug.bc -O2 -o bug2.bc && llc bug2.bc
This is with llvm trunk on x86-64.
--
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