We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 343a810 commit 9f79615Copy full SHA for 9f79615
llvm/include/llvm/ADT/STLFunctionalExtras.h
@@ -16,6 +16,7 @@
16
#define LLVM_ADT_STLFUNCTIONALEXTRAS_H
17
18
#include "llvm/ADT/STLForwardCompat.h"
19
+#include "llvm/Support/Compiler.h"
20
21
#include <cstdint>
22
#include <type_traits>
@@ -52,7 +53,7 @@ class function_ref<Ret(Params...)> {
52
53
54
template <typename Callable>
55
function_ref(
- Callable &&callable,
56
+ Callable &&callable LLVM_LIFETIME_BOUND,
57
// This is not the copy-constructor.
58
std::enable_if_t<!std::is_same<remove_cvref_t<Callable>,
59
function_ref>::value> * = nullptr,
0 commit comments