Skip to content

Commit d1be8f7

Browse files
authored
Use unsigned int for ArchRegWidth
The variable is never negative. The change here simply matches the type of the variable passed into the constructor.
1 parent e2888d7 commit d1be8f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCTargetDesc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ namespace {
131131
class RISCVMCInstrAnalysis : public MCInstrAnalysis {
132132
int64_t GPRState[31] = {};
133133
std::bitset<31> GPRValidMask;
134-
int ArchRegWidth;
134+
unsigned int ArchRegWidth;
135135

136136
static bool isGPR(MCRegister Reg) {
137137
return Reg >= RISCV::X0 && Reg <= RISCV::X31;

0 commit comments

Comments
 (0)