[Sema/CS] std::function -> llvm::function_ref for some non-escaping params.

This commit is contained in:
Huon Wilson
2018-04-30 22:19:35 +10:00
parent 0516915a81
commit d4fbca1183
7 changed files with 20 additions and 21 deletions

View File

@@ -562,7 +562,7 @@ namespace {
/// overloads which inhibit any overload from being favored.
void favorCallOverloads(ApplyExpr *expr,
ConstraintSystem &CS,
std::function<bool(ValueDecl *)> isFavored,
llvm::function_ref<bool(ValueDecl *)> isFavored,
std::function<bool(ValueDecl *)>
mustConsider = nullptr) {
// Find the type variable associated with the function, if any.