Assertion failed: (ExitIfTrue == L->contains(BI->getSuccessor(1)), ScalarEvolution.cpp:7088

Hi all,

I do nightly builds of an open source project (VTK) with a clang I build myself and update every few weeks. After updating from r327520 to r338127 (and still with r338721 from yesterday), clang can no longer build VTK as it asserts with:

Assertion failed: (ExitIfTrue == L->contains(BI->getSuccessor(1)) && "It should have one successor in loop and one exit block!"), function computeExitLimit, file /Users/builder/llvm/llvm/lib/Analysis/ScalarEvolution.cpp, line 7088

which can be seen here:
<https://open.cdash.org/viewBuildError.php?buildid=5482086>

I created a ticket too:
<https://bugs.llvm.org/show_bug.cgi?id=38438>

Cheers,

Sean