summaryrefslogtreecommitdiff
path: root/lib/Analysis
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
commitf3baa581e82b099d6cda24b8dfaf9e91faa28f2b (patch)
tree3ad60da1302cb1cc9e83ef48331562624f8c6abe /lib/Analysis
parent0c388583fb9a8b75d657767e9175fcd853680f67 (diff)
downloadllvm-f3baa581e82b099d6cda24b8dfaf9e91faa28f2b.tar.gz
llvm-f3baa581e82b099d6cda24b8dfaf9e91faa28f2b.tar.bz2
llvm-f3baa581e82b099d6cda24b8dfaf9e91faa28f2b.tar.xz
Fix a broken assert found by -Wparentheses.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141168 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r--lib/Analysis/ScalarEvolution.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp
index f5804430ee..5b16f6288b 100644
--- a/lib/Analysis/ScalarEvolution.cpp
+++ b/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;
}