[llvm] [llvm] Make charset constexpr (NFC) (PR #137535)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 27 10:39:13 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-debuginfo
Author: Aaron Gokaslan (Skylion007)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/137535.diff
1 Files Affected:
- (modified) llvm/lib/DebugInfo/LogicalView/Core/LVSupport.cpp (+1-1)
``````````diff
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);
``````````
</details>
https://github.com/llvm/llvm-project/pull/137535
More information about the llvm-commits
mailing list