[llvm] [llvm] Make charset constexpr (NFC) (PR #137535)

Aaron Gokaslan via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 27 10:38:20 PDT 2025


https://github.com/Skylion007 created https://github.com/llvm/llvm-project/pull/137535

None

>From 61c0f1e14692991a3d2376c07cb3e27b4e39bba9 Mon Sep 17 00:00:00 2001
From: Aaron Gokaslan <aaronGokaslan at gmail.com>
Date: Sun, 27 Apr 2025 13:38:03 -0400
Subject: [PATCH] [llvm] Make charset constexpr (NFC)

---
 llvm/lib/DebugInfo/LogicalView/Core/LVSupport.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/lib/DebugInfo/LogicalView/Core/LVSupport.cpp b/llvm/lib/DebugInfo/LogicalView/Core/LVSupport.cpp
index da6ba8dfd483b..f86af8e3ee4d5 100644
--- a/llvm/lib/DebugInfo/LogicalView/Core/LVSupport.cpp
+++ b/llvm/lib/DebugInfo/LogicalView/Core/LVSupport.cpp
@@ -49,7 +49,7 @@ std::string llvm::logicalview::flattenedFilePath(StringRef Path) {
   std::string Name(Path);
   std::transform(Name.begin(), Name.end(), Name.begin(), tolower);
 
-  const char *CharSet = "/\\<>.:%*?|\" ";
+  constexpr char *CharSet = "/\\<>.:%*?|\" ";
   char *Input = Name.data();
   while (Input && *Input) {
     Input = strpbrk(Input, CharSet);



More information about the llvm-commits mailing list