[llvm] 39d123f - [nfc] const-ify `IntOrString::equalsLower` (#92152)

via llvm-commits llvm-commits at lists.llvm.org
Tue May 14 10:39:09 PDT 2024


Author: Mircea Trofin
Date: 2024-05-14T10:39:05-07:00
New Revision: 39d123f58a0e3c5f1a928940244b8dfd827fd4e5

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

LOG: [nfc] const-ify `IntOrString::equalsLower` (#92152)

Added: 
    

Modified: 
    llvm/tools/llvm-rc/ResourceScriptStmt.h

Removed: 
    


################################################################################
diff  --git a/llvm/tools/llvm-rc/ResourceScriptStmt.h b/llvm/tools/llvm-rc/ResourceScriptStmt.h
index 05865e5828592..0d8ec3e5b7875 100644
--- a/llvm/tools/llvm-rc/ResourceScriptStmt.h
+++ b/llvm/tools/llvm-rc/ResourceScriptStmt.h
@@ -145,7 +145,7 @@ class IntOrString {
   IntOrString(const RCToken &Token)
       : Data(Token), IsInt(Token.kind() == RCToken::Kind::Int) {}
 
-  bool equalsLower(const char *Str) {
+  bool equalsLower(const char *Str) const {
     return !IsInt && Data.String.equals_insensitive(Str);
   }
 


        


More information about the llvm-commits mailing list