From 626f52d43df67c29b156f524551327d741ef80bf Mon Sep 17 00:00:00 2001 From: Jay Foad Date: Wed, 20 Jul 2011 08:15:21 +0000 Subject: [PATCH] Fix a GCC warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135581 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/IndVarSimplify.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index 50140d92598..24d996c95ac 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(Def) || - DT->dominates(cast(Def), InsertPt) && + assert((!isa(Def) || + DT->dominates(cast(Def), InsertPt)) && "def does not dominate all uses"); return InsertPt; }