mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user