Skip to content

Commit a369619

Browse files
committed
Fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warning. NFC.
1 parent 3112578 commit a369619

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3141,7 +3141,7 @@ void RISCVInstrInfo::getVLENFactoredAmount(MachineFunction &MF,
31413141
.setMIFlag(Flag);
31423142
uint32_t PrevShiftAmount = 0;
31433143
for (uint32_t ShiftAmount = 0; NumOfVReg >> ShiftAmount; ShiftAmount++) {
3144-
if (NumOfVReg & (1 << ShiftAmount)) {
3144+
if (NumOfVReg & (1LL << ShiftAmount)) {
31453145
if (ShiftAmount)
31463146
BuildMI(MBB, II, DL, get(RISCV::SLLI), DestReg)
31473147
.addReg(DestReg, RegState::Kill)

0 commit comments

Comments
 (0)