Skip to content

Commit c917f77

Browse files
committed
Add brackets to nested ternary expression
1 parent fd3e4f4 commit c917f77

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18608,9 +18608,9 @@ static SDValue performBuildShuffleExtendCombine(SDValue BV, SelectionDAG &DAG) {
1860818608
: BV.getOperand(1).getOperand(0),
1860918609
cast<ShuffleVectorSDNode>(BV)->getMask());
1861018610
}
18611-
unsigned ExtOpc = !SeenZExtOrSExt ? ISD::ANY_EXTEND
18612-
: IsSExt ? ISD::SIGN_EXTEND
18613-
: ISD::ZERO_EXTEND;
18611+
unsigned ExtOpc = !SeenZExtOrSExt
18612+
? ISD::ANY_EXTEND
18613+
: (IsSExt ? ISD::SIGN_EXTEND : ISD::ZERO_EXTEND);
1861418614
return DAG.getNode(ExtOpc, DL, VT, NBV);
1861518615
}
1861618616

0 commit comments

Comments
 (0)