diff options
author | Jay Foad <jay.foad@gmail.com> | 2011-07-20 08:15:21 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2011-07-20 08:15:21 +0000 |
commit | 626f52d43df67c29b156f524551327d741ef80bf (patch) | |
tree | a9c022a83b5bb7dd29a41349662ee7942a813822 | |
parent | 34ad6db8b958fdc0d38e122edf753b5326e69b03 (diff) |
Fix a GCC warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135581 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Scalar/IndVarSimplify.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index 50140d9259..24d996c95a 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -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; } |