From bdbe302c3396ceb4dd89d1214485439598f05368 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 18 Dec 2023 21:30:12 +0100 Subject: Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb. PR: 276104 MFC after: 1 month (cherry picked from commit 5f757f3ff9144b609b3c433dfd370cc6bdc191ad) --- contrib/llvm-project/llvm/lib/Support/StringRef.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'contrib/llvm-project/llvm/lib/Support/StringRef.cpp') diff --git a/contrib/llvm-project/llvm/lib/Support/StringRef.cpp b/contrib/llvm-project/llvm/lib/Support/StringRef.cpp index 3cce83a982c4..feee47ca693b 100644 --- a/contrib/llvm-project/llvm/lib/Support/StringRef.cpp +++ b/contrib/llvm-project/llvm/lib/Support/StringRef.cpp @@ -388,17 +388,17 @@ static unsigned GetAutoSenseRadix(StringRef &Str) { if (Str.empty()) return 10; - if (Str.startswith("0x") || Str.startswith("0X")) { + if (Str.starts_with("0x") || Str.starts_with("0X")) { Str = Str.substr(2); return 16; } - if (Str.startswith("0b") || Str.startswith("0B")) { + if (Str.starts_with("0b") || Str.starts_with("0B")) { Str = Str.substr(2); return 2; } - if (Str.startswith("0o")) { + if (Str.starts_with("0o")) { Str = Str.substr(2); return 8; } -- cgit v1.2.3