Skip to content

Commit e109c49

Browse files
authored
Revert "Add clang::lifetimebound annotation to llvm::function_ref (#1… (llvm#115376)
…15019)" This reverts commit 9f79615. This is breaking compiler-rt/lib/sanitizer_common/... Author knows about the breakage.
1 parent de41b13 commit e109c49

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/include/llvm/ADT/STLFunctionalExtras.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#define LLVM_ADT_STLFUNCTIONALEXTRAS_H
1717

1818
#include "llvm/ADT/STLForwardCompat.h"
19-
#include "llvm/Support/Compiler.h"
2019

2120
#include <cstdint>
2221
#include <type_traits>
@@ -53,7 +52,7 @@ class function_ref<Ret(Params...)> {
5352

5453
template <typename Callable>
5554
function_ref(
56-
Callable &&callable LLVM_LIFETIME_BOUND,
55+
Callable &&callable,
5756
// This is not the copy-constructor.
5857
std::enable_if_t<!std::is_same<remove_cvref_t<Callable>,
5958
function_ref>::value> * = nullptr,

0 commit comments

Comments
 (0)