[llvm] e4380b0 - Fix operator precedence warning. NFCI.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 2 02:58:25 PST 2020


Author: Simon Pilgrim
Date: 2020-03-02T10:56:58Z
New Revision: e4380b07cca81fcb9c5c10883fc309d8f7c3f7ab

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

LOG: Fix operator precedence warning. NFCI.

Added: 
    

Modified: 
    llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index f6a75b03a9c8..3b0b84e705f8 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -19288,8 +19288,9 @@ static SDValue formSplatFromShuffles(ShuffleVectorSDNode *OuterShuf,
 
     CombinedMask[i] = InnerMaskElt;
   }
-  assert(all_of(CombinedMask, [](int M) { return M == -1; }) ||
-         getSplatIndex(CombinedMask) != -1 && "Expected a splat mask");
+  assert((all_of(CombinedMask, [](int M) { return M == -1; }) ||
+          getSplatIndex(CombinedMask) != -1) &&
+         "Expected a splat mask");
 
   // TODO: The transform may be a win even if the mask is not legal.
   EVT VT = OuterShuf->getValueType(0);


        


More information about the llvm-commits mailing list