summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-07-20 08:15:21 +0000
committerJay Foad <jay.foad@gmail.com>2011-07-20 08:15:21 +0000
commit50bfbab033d5273536e51243e531a4739a0c237a (patch)
tree73fd59635f4c198a318056f5085177e7085bf100 /llvm/lib/Transforms/Scalar
parentefd9b4240f78a632b7e46697a94db6c74d2487b9 (diff)
downloadbcm5719-llvm-50bfbab033d5273536e51243e531a4739a0c237a.tar.gz
bcm5719-llvm-50bfbab033d5273536e51243e531a4739a0c237a.zip
Fix a GCC warning.
llvm-svn: 135581
Diffstat (limited to 'llvm/lib/Transforms/Scalar')
-rw-r--r--llvm/lib/Transforms/Scalar/IndVarSimplify.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
index 50140d92598..24d996c95ac 100644
--- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud