[llvm-commits] [llvm] r141168 - /llvm/trunk/lib/Analysis/ScalarEvolution.cpp

Chandler Carruth chandlerc at gmail.com
Wed Oct 5 00:02:24 PDT 2011


Author: chandlerc
Date: Wed Oct  5 02:02:23 2011
New Revision: 141168

URL: http://llvm.org/viewvc/llvm-project?rev=141168&view=rev
Log:
Fix a broken assert found by -Wparentheses.

Modified:
    llvm/trunk/lib/Analysis/ScalarEvolution.cpp

Modified: llvm/trunk/lib/Analysis/ScalarEvolution.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ScalarEvolution.cpp?rev=141168&r1=141167&r2=141168&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ScalarEvolution.cpp (original)
+++ llvm/trunk/lib/Analysis/ScalarEvolution.cpp Wed Oct  5 02:02:23 2011
@@ -4714,7 +4714,7 @@
     // 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;
     }





More information about the llvm-commits mailing list