projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8383be0
)
Fix -Wparentheses warning. NFCI.
author
Simon Pilgrim
<llvm-dev@redking.me.uk>
Mon, 11 Nov 2019 11:13:32 +0000
(11:13 +0000)
committer
Simon Pilgrim
<llvm-dev@redking.me.uk>
Mon, 11 Nov 2019 11:13:32 +0000
(11:13 +0000)
llvm/lib/Analysis/DDG.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Analysis/DDG.cpp
b/llvm/lib/Analysis/DDG.cpp
index 010b14de1fb8ab34b95f61d4ae7b9e9221452258..38c748b4b0ee4b6f03701b4b4872134757ed1ee7 100644
(file)
--- 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;