Skip to content

Commit

Permalink
ARMFrameLowering.cpp - fix MSVC "result of 32-bit shift implicitly co…
Browse files Browse the repository at this point in the history
…nverted to 64 bits" warning. NFC.
  • Loading branch information
RKSimon committed Mar 31, 2023
1 parent bd20a34 commit b206145
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/Target/ARM/ARMFrameLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit b206145

Please sign in to comment.