[llvm] 0040c4b - Fix -Wparentheses warning. NFCI.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 11 03:13:47 PST 2019


Author: Simon Pilgrim
Date: 2019-11-11T11:13:32Z
New Revision: 0040c4ba1e2ef3450366edcae8ac013e16356687

URL: https://github.com/llvm/llvm-project/commit/0040c4ba1e2ef3450366edcae8ac013e16356687
DIFF: https://github.com/llvm/llvm-project/commit/0040c4ba1e2ef3450366edcae8ac013e16356687.diff

LOG: Fix -Wparentheses warning. NFCI.

Added: 
    

Modified: 
    llvm/lib/Analysis/DDG.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Analysis/DDG.cpp b/llvm/lib/Analysis/DDG.cpp
index 010b14de1fb8..38c748b4b0ee 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;


        


More information about the llvm-commits mailing list