Fix a GCC warning.
authorJay Foad <jay.foad@gmail.com>
Wed, 20 Jul 2011 08:15:21 +0000 (08:15 +0000)
committerJay Foad <jay.foad@gmail.com>
Wed, 20 Jul 2011 08:15:21 +0000 (08:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135581 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/IndVarSimplify.cpp

index 50140d925984eca768bd9a1afb8f1dc323de8e98..24d996c95ac3b192442bafd96da9a4b2073f754f 100644 (file)
@@ -240,8 +240,8 @@ static Instruction *getInsertPointForUses(Instruction *User, Value *Def,
     InsertPt = InsertBB->getTerminator();
   }
   assert(InsertPt && "Missing phi operand");
-  assert(!isa<Instruction>(Def) ||
-         DT->dominates(cast<Instruction>(Def), InsertPt) &&
+  assert((!isa<Instruction>(Def) ||
+          DT->dominates(cast<Instruction>(Def), InsertPt)) &&
          "def does not dominate all uses");
   return InsertPt;
 }