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:
Jordan Rose
2014-07-07 20:51:50 +00:00
parent e9439ff7da
commit 132a29eb67
20 changed files with 101 additions and 148 deletions

View File

@@ -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;
}