mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Sema/CS] std::function -> llvm::function_ref for some non-escaping params.
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user