https://llvm.org/bugs/show_bug.cgi?id=25326
Bug ID: 25326 Summary: Broken module: CleanupPadInst not the first non-PHI instruction in the block Product: libraries Version: trunk Hardware: PC OS: All Status: NEW Severity: normal Priority: P Component: Global Analyses Assignee: unassignedb...@nondot.org Reporter: a...@crichton.co CC: llvm-bugs@lists.llvm.org Classification: Unclassified Created attachment 15166 --> https://llvm.org/bugs/attachment.cgi?id=15166&action=edit failing IR When running `llc` over the LLVM IR attached, it will emit: CleanupPadInst not the first non-PHI instruction in the block. %cleanuppadi4.i.i.i = cleanuppad [] The unwind destination does not have an exception handling instruction! invoke fastcc void @"_ZN3vec13_$LT$impl$GT$7reserve7reserve20h8370453893456365494E"(%"3.collections::vec::Vec<middle::ty::ProjectionPredicate>"* noalias nonnull dereferenceable(12) %vectori4.i.i, i32 %227) to label %normal-return5.i.normal-return10.i_crit_edgei4.i.i unwind label %unwind_custom_i4.i.i.i, !noalias !208 LLVM ERROR: Broken function found, compilation aborted! When checking the IR, however, it looks like the `cleanuppad` instruction is the first non-phi instruction in the block? unwind_custom_i4.i.i.i: %.lcssa178 = phi %"..."* [ %175, %normal-return5i4.i.i.i ] %.pre.i.i.i.2672.i313i4.i.i.lcssa176 = phi %"..."* [ %.pre.i.i.i.2672.i313i4.i.i, %normal-return5i4.i.i.i ] %cleanuppadi4.i.i.i = cleanuppad [] br label %loop_body.i.i.i.28i4.i.i.i I wasn't really quite sure what was going wrong here, and it may be some invalid IR elsewhere in the file (sorry, I couldn't get bugpoint to reduce it further), but perhaps there's something odd going on? -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs