Skip to content

Commit

Permalink
[RISCV] Use 'unsigned' for XLen in RISCVTargetDefEmitter.cpp. NFC
Browse files Browse the repository at this point in the history
The values are small so the difference doesn't matter, but the
consuming function is defined to take 'unsigned'.
  • Loading branch information
topperc committed Mar 18, 2023
1 parent 864a2b2 commit e9c5d80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/utils/TableGen/RISCVTargetDefEmitter.cpp
Expand Up @@ -27,7 +27,7 @@ using ISAInfoTy = llvm::Expected<std::unique_ptr<RISCVISAInfo>>;
// get feature name from feature records instead of feature bits.
static std::string getMArch(const Record &Rec) {
std::vector<std::string> FeatureVector;
int XLen = 32;
unsigned XLen = 32;

// Convert features to FeatureVector.
for (auto *Feature : Rec.getValueAsListOfDefs("Features")) {
Expand Down

0 comments on commit e9c5d80

Please sign in to comment.