mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[AST] Remove @autoclosure flag from function type ExtInfo
This commit is contained in:
@@ -1560,7 +1560,6 @@ resolveOverloadForDeclWithSpecialTypeCheckingSemantics(ConstraintSystem &CS,
|
||||
FunctionType::Param arg(escapeClosure);
|
||||
auto bodyClosure = FunctionType::get(arg, result,
|
||||
FunctionType::ExtInfo(FunctionType::Representation::Swift,
|
||||
/*autoclosure*/ false,
|
||||
/*noescape*/ true,
|
||||
/*throws*/ true));
|
||||
FunctionType::Param args[] = {
|
||||
@@ -1570,7 +1569,6 @@ resolveOverloadForDeclWithSpecialTypeCheckingSemantics(ConstraintSystem &CS,
|
||||
|
||||
refType = FunctionType::get(args, result,
|
||||
FunctionType::ExtInfo(FunctionType::Representation::Swift,
|
||||
/*autoclosure*/ false,
|
||||
/*noescape*/ false,
|
||||
/*throws*/ true));
|
||||
openedFullType = refType;
|
||||
@@ -1591,7 +1589,6 @@ resolveOverloadForDeclWithSpecialTypeCheckingSemantics(ConstraintSystem &CS,
|
||||
FunctionType::Param bodyArgs[] = {FunctionType::Param(openedTy)};
|
||||
auto bodyClosure = FunctionType::get(bodyArgs, result,
|
||||
FunctionType::ExtInfo(FunctionType::Representation::Swift,
|
||||
/*autoclosure*/ false,
|
||||
/*noescape*/ true,
|
||||
/*throws*/ true));
|
||||
FunctionType::Param args[] = {
|
||||
@@ -1600,7 +1597,6 @@ resolveOverloadForDeclWithSpecialTypeCheckingSemantics(ConstraintSystem &CS,
|
||||
};
|
||||
refType = FunctionType::get(args, result,
|
||||
FunctionType::ExtInfo(FunctionType::Representation::Swift,
|
||||
/*autoclosure*/ false,
|
||||
/*noescape*/ false,
|
||||
/*throws*/ true));
|
||||
openedFullType = refType;
|
||||
|
||||
Reference in New Issue
Block a user