Add CanBoundGenericType::getGenericArgs().

Swift SVN r8329
This commit is contained in:
John McCall
2013-09-17 07:22:26 +00:00
parent b72aa5e4ff
commit cb06e316d0
4 changed files with 83 additions and 80 deletions

View File

@@ -561,8 +561,8 @@ void Mangler::mangleType(CanType type, ExplosionKind explosion,
auto boundType = cast<BoundGenericType>(type);
Buffer << 'G';
mangleNominalType(boundType->getDecl(), explosion);
for (auto arg : boundType->getGenericArgs()) {
mangleType(CanType(arg), ExplosionKind::Minimal, /*uncurry*/ 0);
for (auto arg : boundType.getGenericArgs()) {
mangleType(arg, ExplosionKind::Minimal, /*uncurry*/ 0);
}
Buffer << '_';
return;