summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-11-11 11:13:32 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-11-11 11:13:32 +0000
commit0040c4ba1e2ef3450366edcae8ac013e16356687 (patch)
tree1ee93ef97bea4ad3b635398a9edb84921b33d42e
parent8383be0f754a7283525e2a84c64e4cc9133ef9db (diff)
downloadbcm5719-llvm-0040c4ba1e2ef3450366edcae8ac013e16356687.tar.gz
bcm5719-llvm-0040c4ba1e2ef3450366edcae8ac013e16356687.zip
Fix -Wparentheses warning. NFCI.
-rw-r--r--llvm/lib/Analysis/DDG.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/DDG.cpp b/llvm/lib/Analysis/DDG.cpp
index 010b14de1fb..38c748b4b0e 100644
--- a/llvm/lib/Analysis/DDG.cpp
+++ b/llvm/lib/Analysis/DDG.cpp
@@ -213,7 +213,8 @@ bool DataDependenceGraph::addNode(DDGNode &N) {
// always reachable by the root, because they represent components that are
// already reachable by root.
auto *Pi = dyn_cast<PiBlockDDGNode>(&N);
- assert(!Root || Pi && "Root node is already added. No more nodes can be added.");
+ assert((!Root || Pi) &&
+ "Root node is already added. No more nodes can be added.");
if (isa<RootDDGNode>(N))
Root = &N;
OpenPOWER on IntegriCloud