summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-10-05 07:02:23 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-10-05 07:02:23 +0000
commitf6567a131dd246ec32259500fc4d34a01bea4bd6 (patch)
tree3d67385fd84993ffed868efb94c851287a505292
parente276b3662bb3d7d62d459be259eaf11a7fb2a095 (diff)
downloadbcm5719-llvm-f6567a131dd246ec32259500fc4d34a01bea4bd6.tar.gz
bcm5719-llvm-f6567a131dd246ec32259500fc4d34a01bea4bd6.zip
Fix a broken assert found by -Wparentheses.
llvm-svn: 141168
-rw-r--r--llvm/lib/Analysis/ScalarEvolution.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index f5804430ee2..5b16f6288bc 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -4714,7 +4714,7 @@ getConstantEvolvingPHIOperands(Instruction *UseInst, const Loop *L,
// 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;
}
OpenPOWER on IntegriCloud