mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: Drop unnecessary bits from SILFunctionType::ExtInfo.
"Autoclosure" is uninteresting to SIL. "noescape" isn't currently used by SIL and we shouldn't have it until it has a meaningful effect on SIL. "throws" should be adequately represented by a SIL function type having an error result. Swift SVN r27023
This commit is contained in:
@@ -3649,21 +3649,20 @@ Type ModuleFile::getType(TypeID TID) {
|
||||
uint8_t rawCalleeConvention;
|
||||
bool thin, block;
|
||||
bool noreturn = false;
|
||||
bool noescape = false;
|
||||
unsigned numGenericParams;
|
||||
ArrayRef<uint64_t> paramIDs;
|
||||
|
||||
decls_block::SILFunctionTypeLayout::readRecord(scratch,
|
||||
interfaceResultID,
|
||||
rawInterfaceResultConvention,
|
||||
interfaceErrorResultID,
|
||||
rawInterfaceErrorResultConvention,
|
||||
rawCalleeConvention,
|
||||
rawCallingConvention,
|
||||
thin, block,
|
||||
noreturn, noescape,
|
||||
numGenericParams,
|
||||
paramIDs);
|
||||
interfaceResultID,
|
||||
rawInterfaceResultConvention,
|
||||
interfaceErrorResultID,
|
||||
rawInterfaceErrorResultConvention,
|
||||
rawCalleeConvention,
|
||||
rawCallingConvention,
|
||||
thin, block,
|
||||
noreturn,
|
||||
numGenericParams,
|
||||
paramIDs);
|
||||
|
||||
// Process the ExtInfo.
|
||||
auto callingConvention = getActualCC(rawCallingConvention);
|
||||
@@ -3673,8 +3672,7 @@ Type ModuleFile::getType(TypeID TID) {
|
||||
}
|
||||
SILFunctionType::ExtInfo extInfo(callingConvention.getValue(),
|
||||
getSILFunctionRepresentation(thin, block),
|
||||
noreturn, /*autoclosure*/false, noescape,
|
||||
/*throws*/false);
|
||||
noreturn);
|
||||
|
||||
// Process the result.
|
||||
auto interfaceResultConvention
|
||||
|
||||
Reference in New Issue
Block a user