mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SILGen] Update a few callers of SubstitutionMap::get to use getSingletonPackExpansion,
and update variadic generics SILGen tests for the representation change.
This commit is contained in:
@@ -1712,7 +1712,12 @@ public:
|
||||
auto gp = GenericTypeParamType::get(isParameterPack, 0, paramIndex,
|
||||
TC.Context);
|
||||
substGenericParams.push_back(gp);
|
||||
substReplacementTypes.push_back(substTy);
|
||||
if (isParameterPack) {
|
||||
substReplacementTypes.push_back(
|
||||
PackType::getSingletonPackExpansion(substTy));
|
||||
} else {
|
||||
substReplacementTypes.push_back(substTy);
|
||||
}
|
||||
|
||||
if (auto layout = pattern.getLayoutConstraint()) {
|
||||
// Look at the layout constraint on this position in the abstraction pattern
|
||||
|
||||
Reference in New Issue
Block a user