Skip to content

Commit

Permalink
Revert "Add clang::lifetimebound annotation to llvm::function_ref (#1… (
Browse files Browse the repository at this point in the history
#115376)

…15019)"

This reverts commit 9f79615.

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

Author knows about the breakage.
  • Loading branch information
pranavk authored Nov 7, 2024
1 parent de41b13 commit e109c49
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llvm/include/llvm/ADT/STLFunctionalExtras.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#define LLVM_ADT_STLFUNCTIONALEXTRAS_H

#include "llvm/ADT/STLForwardCompat.h"
#include "llvm/Support/Compiler.h"

#include <cstdint>
#include <type_traits>
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit e109c49

Please sign in to comment.