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/tools/llvm-diff/llvm-diff.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'contrib/llvm-project/llvm/tools/llvm-diff/llvm-diff.cpp') diff --git a/contrib/llvm-project/llvm/tools/llvm-diff/llvm-diff.cpp b/contrib/llvm-project/llvm/tools/llvm-diff/llvm-diff.cpp index 7349469c80d6..6fe18a51c9f5 100644 --- a/contrib/llvm-project/llvm/tools/llvm-diff/llvm-diff.cpp +++ b/contrib/llvm-project/llvm/tools/llvm-diff/llvm-diff.cpp @@ -42,7 +42,8 @@ static std::unique_ptr readModule(LLVMContext &Context, static void diffGlobal(DifferenceEngine &Engine, Module &L, Module &R, StringRef Name) { // Drop leading sigils from the global name. - if (Name.startswith("@")) Name = Name.substr(1); + if (Name.starts_with("@")) + Name = Name.substr(1); Function *LFn = L.getFunction(Name); Function *RFn = R.getFunction(Name); -- cgit v1.2.3