[llvm] 8c124e3 - [RISCV] isDigit instead of isdigit for consistency. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 30 00:14:55 PDT 2023


Author: Craig Topper
Date: 2023-03-30T00:11:12-07:00
New Revision: 8c124e3c416f51701732e9bae5e072f56357217a

URL: https://github.com/llvm/llvm-project/commit/8c124e3c416f51701732e9bae5e072f56357217a
DIFF: https://github.com/llvm/llvm-project/commit/8c124e3c416f51701732e9bae5e072f56357217a.diff

LOG: [RISCV] isDigit instead of isdigit for consistency. NFC

There are several other calls to isDigit in RISCVISAInfo.cpp

Added: 
    

Modified: 
    llvm/lib/Support/RISCVISAInfo.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Support/RISCVISAInfo.cpp b/llvm/lib/Support/RISCVISAInfo.cpp
index bd243f7a0d5f..ffb072677ec1 100644
--- a/llvm/lib/Support/RISCVISAInfo.cpp
+++ b/llvm/lib/Support/RISCVISAInfo.cpp
@@ -619,7 +619,7 @@ RISCVISAInfo::parseArchString(StringRef Arch, bool EnableExperimentalExtension,
     break;
   case 'g':
     // g = imafd
-    if (Arch.size() > 5 && isdigit(Arch[5]))
+    if (Arch.size() > 5 && isDigit(Arch[5]))
       return createStringError(errc::invalid_argument,
                                "version not supported for 'g'");
     StdExts = StdExts.drop_front(4);


        


More information about the llvm-commits mailing list