Skip to content

Commit 842bc07

Browse files
[DebugInfo] Use StringRef::starts_with (NFC) (llvm#135933)
1 parent 81b4fc2 commit 842bc07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/DebugInfo/Symbolize/Symbolize.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ LLVMSymbolizer::DemangleName(StringRef Name,
753753
if (nonMicrosoftDemangle(Name, Result))
754754
return Result;
755755

756-
if (!Name.empty() && Name.front() == '?') {
756+
if (Name.starts_with('?')) {
757757
// Only do MSVC C++ demangling on symbols starting with '?'.
758758
int status = 0;
759759
char *DemangledName = microsoftDemangle(

0 commit comments

Comments
 (0)