Skip to content

Commit

Permalink
Fix MSVC signed/unsigned mismatch warning. NFC.
Browse files Browse the repository at this point in the history
  • Loading branch information
RKSimon committed Sep 28, 2024
1 parent a800764 commit 44478ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ MachineInstr *RISCVInstrInfo::foldMemoryOperandImpl(
if (RISCV::getRVVMCOpcode(MI.getOpcode()) == RISCV::VMV_X_S) {
unsigned Log2SEW =
MI.getOperand(RISCVII::getSEWOpNum(MI.getDesc())).getImm();
if (STI.getXLen() < (1 << Log2SEW))
if (STI.getXLen() < (1U << Log2SEW))
return nullptr;
switch (Log2SEW) {
case 3:
Expand Down

0 comments on commit 44478ba

Please sign in to comment.