[RISCV] Use 'unsigned' for XLen in RISCVTargetDefEmitter.cpp. NFC
authorCraig Topper <craig.topper@sifive.com>
Sat, 18 Mar 2023 07:41:03 +0000 (00:41 -0700)
committerCraig Topper <craig.topper@sifive.com>
Sat, 18 Mar 2023 08:00:48 +0000 (01:00 -0700)
The values are small so the difference doesn't matter, but the
consuming function is defined to take 'unsigned'.

llvm/utils/TableGen/RISCVTargetDefEmitter.cpp

index fa6508c..b534ce4 100644 (file)
@@ -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")) {