From 0c85e2760f6b5016c16d29f8c2f63f3ba2cf5298 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Wed, 3 Jan 2024 19:04:11 +0100 Subject: Merge llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project main llvmorg-18-init-16003-gfc5f51cf5af4. PR: 276104 MFC after: 1 month (cherry picked from commit 647cbc5de815c5651677bf8582797f716ec7b48d) --- contrib/llvm-project/llvm/lib/TextAPI/TextStubV5.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'contrib/llvm-project/llvm/lib/TextAPI/TextStubV5.cpp') diff --git a/contrib/llvm-project/llvm/lib/TextAPI/TextStubV5.cpp b/contrib/llvm-project/llvm/lib/TextAPI/TextStubV5.cpp index 2f82bc03480b..aea772dbc4be 100644 --- a/contrib/llvm-project/llvm/lib/TextAPI/TextStubV5.cpp +++ b/contrib/llvm-project/llvm/lib/TextAPI/TextStubV5.cpp @@ -201,8 +201,9 @@ Expected getRequiredValue( template Expected getRequiredValue( TBDKey Key, const Object *Obj, - std::function(const Object *, StringRef)> GetValue, - StubT DefaultValue, std::function(JsonT)> Validate) { + std::function(const Object *, StringRef)> const + GetValue, + StubT DefaultValue, function_ref(JsonT)> Validate) { std::optional Val = GetValue(Obj, Keys[Key]); if (!Val) return DefaultValue; @@ -215,7 +216,7 @@ Expected getRequiredValue( } Error collectFromArray(TBDKey Key, const Object *Obj, - std::function Append, + function_ref Append, bool IsRequired = false) { const auto *Values = Obj->getArray(Keys[Key]); if (!Values) { -- cgit v1.2.3