From e109c493210572535de25950e7b83f74b8d11a6a Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Thu, 7 Nov 2024 13:53:14 -0800 Subject: [PATCH] =?UTF-8?q?Revert=20"Add=20clang::lifetimebound=20annotati?= =?UTF-8?q?on=20to=20llvm::function=5Fref=20(#1=E2=80=A6=20(#115376)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …15019)" This reverts commit 9f796159f28775b3f93d77e173c1fd3413c2e60e. This is breaking compiler-rt/lib/sanitizer_common/... Author knows about the breakage. --- llvm/include/llvm/ADT/STLFunctionalExtras.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/include/llvm/ADT/STLFunctionalExtras.h b/llvm/include/llvm/ADT/STLFunctionalExtras.h index 3b9d40959d7142..6f172504b3c167 100644 --- a/llvm/include/llvm/ADT/STLFunctionalExtras.h +++ b/llvm/include/llvm/ADT/STLFunctionalExtras.h @@ -16,7 +16,6 @@ #define LLVM_ADT_STLFUNCTIONALEXTRAS_H #include "llvm/ADT/STLForwardCompat.h" -#include "llvm/Support/Compiler.h" #include #include @@ -53,7 +52,7 @@ class function_ref { template function_ref( - Callable &&callable LLVM_LIFETIME_BOUND, + Callable &&callable, // This is not the copy-constructor. std::enable_if_t, function_ref>::value> * = nullptr,