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

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Tue May 14 10:38:59 PDT 2024


https://github.com/mtrofin created https://github.com/llvm/llvm-project/pull/92152

None

>From 42a1a9b14d0111a6fd725f629d865d5143229d9d Mon Sep 17 00:00:00 2001
From: Mircea Trofin <mtrofin at google.com>
Date: Tue, 14 May 2024 10:27:39 -0700
Subject: [PATCH] [nfc] const-ify `IntOrString::equalsLower`

---
 llvm/tools/llvm-rc/ResourceScriptStmt.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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