Fix a broken assert found by -Wparentheses.
authorChandler Carruth <chandlerc@gmail.com>
Wed, 5 Oct 2011 07:02:23 +0000 (07:02 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 5 Oct 2011 07:02:23 +0000 (07:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141168 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ScalarEvolution.cpp

index f5804430ee23a9c361b96b414a794d99b7f4f7c3..5b16f6288bc64809a03ff479ffa8df2c9cc2d0e4 100644 (file)
@@ -4714,7 +4714,7 @@ getConstantEvolvingPHIOperands(Instruction *UseInst, const Loop *L,
     // If this operand is already visited, reuse the prior result.
     P = PHIMap.lookup(OpInst);
     if (P) {
-      assert(!PHI || P == PHI && "inconsitent data flow");
+      assert((!PHI || P == PHI) && "inconsitent data flow");
       PHI = P;
       continue;
     }