diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index f6a75b03a9c8a..3b0b84e705f82 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);