https://llvm.org/bugs/show_bug.cgi?id=25445
Bug ID: 25445 Summary: [WinEH] LoopStrengthReduce crashes in the presence of catchpads w/ phis Product: libraries Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: Scalar Optimizations Assignee: unassignedb...@nondot.org Reporter: david.majne...@gmail.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified consider: void f(int *); void g(int *b, int *c) { int *e = b; try { try { int *d = b; for (;; ++d) f(d); } catch (...) { } e = c; f(c); } catch (...) { f(e); } } reproduces with: clang -cc1 -triple i686-pc-windows-msvc18.0.0 -emit-obj -fcxx-exceptions -fexceptions -O2 crashes in: LoopStrengthReduce.cpp:4425: BasicBlock::iterator <anonymous namespace>::LSRInstance::AdjustInsertPositionForExpand(BasicBlock::iterator, const <anonymous>::LSRFixup &, const <anonymous>::LSRUse &, llvm::SCEVExpander &) const: Assertion `!isa<PHINode>(LowestIP) && !LowestIP->isEHPad() && !isa<DbgInfoIntrinsic>(LowestIP) && "Insertion point must be a normal instruction"' 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