summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/DDG.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Analysis/DDG.cpp')
-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