mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Introduce new SubstitutionList type to replace ArrayRef<Substitution>
SubstitutionList is going to be a more compact representation of a SubstitutionMap, suitable for inline allocation inside another object. For now, it's just a typedef for ArrayRef<Substitution>.
This commit is contained in:
@@ -144,7 +144,7 @@ bool ReleaseDevirtualizer::createDeallocCall(SILType AllocType,
|
||||
return false;
|
||||
|
||||
CanSILFunctionType DeallocType = Dealloc->getLoweredFunctionType();
|
||||
ArrayRef<Substitution> AllocSubsts = AllocType.gatherAllSubstitutions(M);
|
||||
SubstitutionList AllocSubsts = AllocType.gatherAllSubstitutions(M);
|
||||
|
||||
assert(!AllocSubsts.empty() == DeallocType->isPolymorphic() &&
|
||||
"dealloc of generic class is not polymorphic or vice versa");
|
||||
|
||||
Reference in New Issue
Block a user