Fix operator precedence warning. NFCI.

This commit is contained in:
Simon Pilgrim 2020-03-02 10:56:29 +00:00
parent 464223b5ac
commit e4380b07cc
1 changed files with 3 additions and 2 deletions

View File

@ -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);