mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Remove unnecessary wrapper type GenericParam.
This always wrapped a single GenericTypeParamDecl *, and provided no benefit over just using the decl directly. No (intended) functionality change. Swift SVN r19628
This commit is contained in:
@@ -494,7 +494,7 @@ ArrayRef<Substitution> BoundGenericType::getSubstitutions(
|
||||
unsigned index = 0;
|
||||
for (Type arg : canon->getGenericArgs()) {
|
||||
auto gp = genericParams->getParams()[index++];
|
||||
auto archetype = gp.getAsTypeParam()->getArchetype();
|
||||
auto archetype = gp->getArchetype();
|
||||
substitutions[archetype] = arg;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user