[llvm] e109c49 - Revert "Add clang::lifetimebound annotation to llvm::function_ref (#1… (#115376)

via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 7 13:53:17 PST 2024


Author: Pranav Kant
Date: 2024-11-07T13:53:14-08:00
New Revision: e109c493210572535de25950e7b83f74b8d11a6a

URL: https://github.com/llvm/llvm-project/commit/e109c493210572535de25950e7b83f74b8d11a6a
DIFF: https://github.com/llvm/llvm-project/commit/e109c493210572535de25950e7b83f74b8d11a6a.diff

LOG: Revert "Add clang::lifetimebound annotation to llvm::function_ref (#1… (#115376)

…15019)"

This reverts commit 9f796159f28775b3f93d77e173c1fd3413c2e60e.

This is breaking compiler-rt/lib/sanitizer_common/...

Author knows about the breakage.

Added: 
    

Modified: 
    llvm/include/llvm/ADT/STLFunctionalExtras.h

Removed: 
    


################################################################################
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 <cstdint>
 #include <type_traits>
@@ -53,7 +52,7 @@ class function_ref<Ret(Params...)> {
 
   template <typename Callable>
   function_ref(
-      Callable &&callable LLVM_LIFETIME_BOUND,
+      Callable &&callable,
       // This is not the copy-constructor.
       std::enable_if_t<!std::is_same<remove_cvref_t<Callable>,
                                      function_ref>::value> * = nullptr,


        


More information about the llvm-commits mailing list