diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2023-02-08 15:27:00 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2023-02-08 15:27:05 +0000 |
commit | 2c580884c1de70b13503a14f61ea124e7202308d (patch) | |
tree | 4ea61ffd6238f2fe25daab994db86c866a89a592 | |
parent | f1a87d476cc1d4a361917ed7e44e11ac5bc5636d (diff) | |
download | llvm-2c580884c1de70b13503a14f61ea124e7202308d.zip llvm-2c580884c1de70b13503a14f61ea124e7202308d.tar.gz llvm-2c580884c1de70b13503a14f61ea124e7202308d.tar.bz2 |
[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.
-rw-r--r-- | llvm/lib/Target/ARM/ARMISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp index e664701..6370ac3 100644 --- a/llvm/lib/Target/ARM/ARMISelLowering.cpp +++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp @@ -17139,7 +17139,7 @@ static SDValue PerformReduceShuffleCombine(SDNode *N, SelectionDAG &DAG) { for (int E : Mask) { if (E < 0 || E >= (int)Mask.size()) return SDValue(); - SetElts |= 1 << E; + SetElts.setBit(E); } if (!SetElts.isAllOnes()) return SDValue(); |