diff --git a/llvm/include/llvm/ADT/STLFunctionalExtras.h b/llvm/include/llvm/ADT/STLFunctionalExtras.h index 3b9d40959d714..a4d50dc3648be 100644 --- a/llvm/include/llvm/ADT/STLFunctionalExtras.h +++ b/llvm/include/llvm/ADT/STLFunctionalExtras.h @@ -36,8 +36,8 @@ namespace llvm { /// a function_ref. template class function_ref; -template -class function_ref { +template +class LLVM_GSL_POINTER function_ref { Ret (*callback)(intptr_t callable, Params ...params) = nullptr; intptr_t callable;