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 Jan 26, 2024
1 parent 7b7d2dd commit 70fbcdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ static DecodeStatus decodeSrcOp(MCInst &Inst, unsigned EncSize,
unsigned Imm, unsigned EncImm,
bool MandatoryLiteral, unsigned ImmWidth,
const MCDisassembler *Decoder) {
assert(Imm < (1 << EncSize) && "Operand doesn't fit encoding!");
assert(Imm < (1U << EncSize) && "Operand doesn't fit encoding!");
auto DAsm = static_cast<const AMDGPUDisassembler *>(Decoder);
return addOperand(
Inst, DAsm->decodeSrcOp(OpWidth, EncImm, MandatoryLiteral, ImmWidth));
Expand Down

0 comments on commit 70fbcdb

Please sign in to comment.