[llvm] b206145 - ARMFrameLowering.cpp - fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warning. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 31 02:34:32 PDT 2023
Author: Simon Pilgrim
Date: 2023-03-31T10:34:19+01:00
New Revision: b206145323fafc75d82efcc7e154218e37480953
URL: https://github.com/llvm/llvm-project/commit/b206145323fafc75d82efcc7e154218e37480953
DIFF: https://github.com/llvm/llvm-project/commit/b206145323fafc75d82efcc7e154218e37480953.diff
LOG: ARMFrameLowering.cpp - fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warning. NFC.
Added:
Modified:
llvm/lib/Target/ARM/ARMFrameLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/ARM/ARMFrameLowering.cpp b/llvm/lib/Target/ARM/ARMFrameLowering.cpp
index ae5a45ff5985a..724705c25e3a6 100644
--- a/llvm/lib/Target/ARM/ARMFrameLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMFrameLowering.cpp
@@ -363,7 +363,7 @@ static MachineBasicBlock::iterator insertSEH(MachineBasicBlock::iterator MBBI,
MBBI->getOperand(3).getImm() == -4) {
unsigned Reg = RegInfo->getSEHRegNum(MBBI->getOperand(1).getReg());
MIB = BuildMI(MF, DL, TII.get(ARM::SEH_SaveRegs))
- .addImm(1 << Reg)
+ .addImm(1ULL << Reg)
.addImm(/*Wide=*/1)
.setMIFlags(Flags);
} else {
@@ -377,7 +377,7 @@ static MachineBasicBlock::iterator insertSEH(MachineBasicBlock::iterator MBBI,
MBBI->getOperand(3).getImm() == 4) {
unsigned Reg = RegInfo->getSEHRegNum(MBBI->getOperand(0).getReg());
MIB = BuildMI(MF, DL, TII.get(ARM::SEH_SaveRegs))
- .addImm(1 << Reg)
+ .addImm(1ULL << Reg)
.addImm(/*Wide=*/1)
.setMIFlags(Flags);
} else {
More information about the llvm-commits
mailing list