mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Doug twisted my arm and convinced me that noescape was a better match for the semantics we’ll have here. NoCapture would be confusable with "this closure doesn’t have any captures, thus should be compatible with thin function types"
The attribute itself remains __'ized. Swift SVN r24113
This commit is contained in:
@@ -2988,14 +2988,14 @@ Type ModuleFile::getType(TypeID TID) {
|
||||
TypeID inputID;
|
||||
TypeID resultID;
|
||||
uint8_t rawCallingConvention;
|
||||
bool autoClosure, thin, noreturn, blockCompatible, nocapture;
|
||||
bool autoClosure, thin, noreturn, blockCompatible, noescape;
|
||||
|
||||
decls_block::FunctionTypeLayout::readRecord(scratch, inputID, resultID,
|
||||
rawCallingConvention,
|
||||
autoClosure, thin,
|
||||
noreturn,
|
||||
blockCompatible,
|
||||
nocapture);
|
||||
noescape);
|
||||
auto callingConvention = getActualCC(rawCallingConvention);
|
||||
if (!callingConvention.hasValue()) {
|
||||
error();
|
||||
@@ -3004,7 +3004,7 @@ Type ModuleFile::getType(TypeID TID) {
|
||||
|
||||
auto Info = FunctionType::ExtInfo(callingConvention.getValue(),
|
||||
getFunctionRepresentation(thin, blockCompatible),
|
||||
noreturn, autoClosure, nocapture);
|
||||
noreturn, autoClosure, noescape);
|
||||
|
||||
typeOrOffset = FunctionType::get(getType(inputID), getType(resultID),
|
||||
Info);
|
||||
|
||||
Reference in New Issue
Block a user