Remove VarargBaseTy field from TupleTypeElt.

Use a bit to indicate whether the element is a vararg one and infer the
VarargBase type via the element type.

Swift SVN r6220
This commit is contained in:
Argyrios Kyrtzidis
2013-07-12 22:24:31 +00:00
parent 61d547a2a1
commit b7817e4879
12 changed files with 53 additions and 64 deletions

View File

@@ -1318,14 +1318,14 @@ Type ModuleFile::getType(TypeID TID) {
IdentifierID nameID;
TypeID typeID;
TypeID varargBaseID;
bool isVararg;
decls_block::TupleTypeEltLayout::readRecord(scratch, nameID, typeID,
varargBaseID);
isVararg);
{
BCOffsetRAII restoreOffset(DeclTypeCursor);
elements.push_back({getType(typeID), getIdentifier(nameID),
/*initializer=*/nullptr, getType(varargBaseID)});
/*initializer=*/nullptr, isVararg});
}
}