diff --git a/llvm/include/llvm/Transforms/IPO/Attributor.h b/llvm/include/llvm/Transforms/IPO/Attributor.h index a8ee3cd531e49..28bce7b906652 100644 --- a/llvm/include/llvm/Transforms/IPO/Attributor.h +++ b/llvm/include/llvm/Transforms/IPO/Attributor.h @@ -1478,7 +1478,7 @@ struct AttributorConfig { /// The name of the pass running the attributor, used to emit remarks. const char *PassName = nullptr; - using IPOAmendableCBTy = function_ref; + using IPOAmendableCBTy = std::function; IPOAmendableCBTy IPOAmendableCB; };