mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Sema: Record opened pack expansion types in the trail
This commit is contained in:
@@ -1263,6 +1263,15 @@ Type ConstraintSystem::openPackExpansionType(PackExpansionType *expansion,
|
||||
return expansionVar;
|
||||
}
|
||||
|
||||
void ConstraintSystem::recordOpenedPackExpansionType(PackExpansionType *expansion,
|
||||
TypeVariableType *expansionVar) {
|
||||
bool inserted = OpenedPackExpansionTypes.insert({expansion, expansionVar}).second;
|
||||
if (inserted) {
|
||||
if (isRecordingChanges())
|
||||
recordChange(SolverTrail::Change::recordedOpenedPackExpansionType(expansion));
|
||||
}
|
||||
}
|
||||
|
||||
Type ConstraintSystem::openOpaqueType(OpaqueTypeArchetypeType *opaque,
|
||||
ConstraintLocatorBuilder locator) {
|
||||
auto opaqueDecl = opaque->getDecl();
|
||||
|
||||
Reference in New Issue
Block a user