[llvm] [llvm] Make charset constexpr (NFC) (PR #137535)
Aaron Gokaslan via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 28 06:53:30 PDT 2025
https://github.com/Skylion007 updated https://github.com/llvm/llvm-project/pull/137535
>From 745acb7b2c290e4140c9a6685d100356918d7a56 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..72e1c4e515535 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 const char *CharSet = "/\\<>.:%*?|\" ";
char *Input = Name.data();
while (Input && *Input) {
Input = strpbrk(Input, CharSet);
More information about the llvm-commits
mailing list