Skip to content

Commit 2c58088

Browse files
committed
[ARM] Fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warning. NFC.
Use APInt::setBit() method instead of OR'ing individual bits.
1 parent f1a87d4 commit 2c58088

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/ARM/ARMISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17139,7 +17139,7 @@ static SDValue PerformReduceShuffleCombine(SDNode *N, SelectionDAG &DAG) {
1713917139
for (int E : Mask) {
1714017140
if (E < 0 || E >= (int)Mask.size())
1714117141
return SDValue();
17142-
SetElts |= 1 << E;
17142+
SetElts.setBit(E);
1714317143
}
1714417144
if (!SetElts.isAllOnes())
1714517145
return SDValue();

0 commit comments

Comments
 (0)