https://llvm.org/bugs/show_bug.cgi?id=25444
Bug ID: 25444 Summary: [WinEH] Tail duplication pass asserts in the presence of catchpads Product: libraries Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: Common Code Generator Code Assignee: unassignedb...@nondot.org Reporter: david.majne...@gmail.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified consider: void g(void *, bool); void f(int b, void *c) { bool a = false; try { g(c, b); a = true; } catch (...) { } g(c, a); } run with: clang -cc1 -triple i686-pc-windows-msvc18.0.0 -emit-obj -fcxx-exceptions -fexceptions -O2 dll_main-fd2b3b.ii -o - -emit-llvm we crash here: lib/CodeGen/TailDuplication.cpp:624: bool <anonymous namespace>::TailDuplicatePass::shouldTailDuplicate(const llvm::MachineFunction &, bool, llvm::MachineBasicBlock &): Assertion `Idx != 0' failed. -- 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