[clang] be7358d - Revert "[RISCV] Try using toupper instead of std::toupper to make the build bots happy."

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 2 12:31:20 PDT 2021


Author: Craig Topper
Date: 2021-04-02T12:30:23-07:00
New Revision: be7358df1e3066d09171159211b9fa578272585e

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

LOG: Revert "[RISCV] Try using toupper instead of std::toupper to make the build bots happy."

This reverts commit 5311abc7a24e4170e5e6d06f1022da87f1413dd7.

jrtc27 included the proper header in 1bd4986e7cdc124fecbf4b4527039a9a845e61f5
while I was trying to figure out what llvm/clang usually used.

Added: 
    

Modified: 
    clang/lib/Sema/SemaChecking.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp
index c92c1b5aa3d1..5b534f871bcc 100644
--- a/clang/lib/Sema/SemaChecking.cpp
+++ b/clang/lib/Sema/SemaChecking.cpp
@@ -3428,7 +3428,7 @@ bool Sema::CheckRISCVBuiltinFunctionCall(const TargetInfo &TI,
     // Convert features like "zbr" and "experimental-zbr" to "Zbr".
     I.consume_front("experimental-");
     std::string FeatureStr = I.str();
-    FeatureStr[0] = toupper(FeatureStr[0]);
+    FeatureStr[0] = std::toupper(FeatureStr[0]);
 
     // Error message
     FeatureMissing = true;


        


More information about the cfe-commits mailing list