[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

@@ -145,7 +145,7 @@ ConstraintGraphNode::getAdjacency(TypeVariableType *typeVar) {
void ConstraintGraphNode::modifyAdjacency(
TypeVariableType *typeVar,
std::function<void(Adjacency& adj)> modify) {
llvm::function_ref<void(Adjacency& adj)> modify) {
// Find the adjacency information.
auto pos = AdjacencyInfo.find(typeVar);
assert(pos != AdjacencyInfo.end() && "Type variables not adjacent");