mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Sema: Avoid copying BindingSets
They're stored inside the ConstraintGraphNode now, so returning a `const BindingSet *` from within determineBestBindings() should be safe.
This commit is contained in:
@@ -5309,7 +5309,7 @@ ConstraintSystem::inferKeyPathLiteralCapability(KeyPathExpr *keyPath) {
|
||||
return success(mutability, isSendable);
|
||||
}
|
||||
|
||||
TypeVarBindingProducer::TypeVarBindingProducer(BindingSet &bindings)
|
||||
TypeVarBindingProducer::TypeVarBindingProducer(const BindingSet &bindings)
|
||||
: BindingProducer(bindings.getConstraintSystem(),
|
||||
bindings.getTypeVariable()->getImpl().getLocator()),
|
||||
TypeVar(bindings.getTypeVariable()), CanBeNil(bindings.canBeNil()) {
|
||||
|
||||
Reference in New Issue
Block a user