Skip to content

Commit c734377

Browse files
committed
[DAG] foldMaskedMerge - fix Wparentheses operator precedence warning. NFC.
1 parent b533b0e commit c734377

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7214,9 +7214,8 @@ static SDValue foldMaskedMerge(SDNode *Node, SelectionDAG &DAG,
72147214
const TargetLowering &TLI, const SDLoc &DL) {
72157215
// Note that masked-merge variants using XOR or ADD expressions are
72167216
// normalized to OR by InstCombine so we only check for OR or AND.
7217-
assert(Node->getOpcode() == ISD::OR ||
7218-
Node->getOpcode() == ISD::AND &&
7219-
"Must be called with ISD::OR or ISD::AND node");
7217+
assert((Node->getOpcode() == ISD::OR || Node->getOpcode() == ISD::AND) &&
7218+
"Must be called with ISD::OR or ISD::AND node");
72207219

72217220
// If the target supports and-not, don't fold this.
72227221
if (TLI.hasAndNot(SDValue(Node, 0)))

0 commit comments

Comments
 (0)