diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/lib/Analysis/ScalarEvolution.cpp @@ -8439,7 +8439,7 @@ // If EL0.ExactNotTaken was zero and ExitCond was a short-circuit form, // it should have been simplified to zero (see the condition (3) above) - assert(!isa(ExitCond) || !EL0.ExactNotTaken->isZero() || + assert(isa(ExitCond) || !EL0.ExactNotTaken->isZero() || BECount->isZero()); } if (EL0.MaxNotTaken == getCouldNotCompute())