diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2024-01-03 18:04:11 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2024-04-19 21:24:24 +0000 |
commit | 0c85e2760f6b5016c16d29f8c2f63f3ba2cf5298 (patch) | |
tree | d6c9033fa7ca2f632ddc81d371ef3faf921652db /contrib/llvm-project/llvm/tools/llvm-diff/llvm-diff.cpp | |
parent | 92d4d6f1f60e5d9cb2c7e0dd5d632987e54741e8 (diff) |
Diffstat (limited to 'contrib/llvm-project/llvm/tools/llvm-diff/llvm-diff.cpp')
-rw-r--r-- | contrib/llvm-project/llvm/tools/llvm-diff/llvm-diff.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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 6fe18a51c9f5..3e77b1ed89b0 100644 --- a/contrib/llvm-project/llvm/tools/llvm-diff/llvm-diff.cpp +++ b/contrib/llvm-project/llvm/tools/llvm-diff/llvm-diff.cpp @@ -42,8 +42,7 @@ static std::unique_ptr<Module> readModule(LLVMContext &Context, static void diffGlobal(DifferenceEngine &Engine, Module &L, Module &R, StringRef Name) { // Drop leading sigils from the global name. - if (Name.starts_with("@")) - Name = Name.substr(1); + Name.consume_front("@"); Function *LFn = L.getFunction(Name); Function *RFn = R.getFunction(Name); |