@@ -7210,14 +7210,14 @@ FuncDecl *FuncDecl::createImpl(ASTContext &Context,
7210
7210
7211
7211
FuncDecl *FuncDecl::createDeserialized (ASTContext &Context,
7212
7212
StaticSpellingKind StaticSpelling,
7213
- DeclName Name, bool Async, bool Throws,
7213
+ DeclName Name, bool Async, bool Throws, TypeRepr *ThrowsType,
7214
7214
GenericParamList *GenericParams,
7215
7215
Type FnRetType, DeclContext *Parent) {
7216
7216
assert (FnRetType && " Deserialized result type must not be null" );
7217
7217
auto *const FD =
7218
7218
FuncDecl::createImpl (Context, SourceLoc (), StaticSpelling, SourceLoc (),
7219
7219
Name, SourceLoc (), Async, SourceLoc (), Throws,
7220
- SourceLoc (), nullptr , GenericParams, Parent, ClangNode ());
7220
+ SourceLoc (), ThrowsType , GenericParams, Parent, ClangNode ());
7221
7221
FD->setResultInterfaceType (FnRetType);
7222
7222
return FD;
7223
7223
}
@@ -7240,13 +7240,13 @@ FuncDecl *FuncDecl::create(ASTContext &Context, SourceLoc StaticLoc,
7240
7240
FuncDecl *FuncDecl::createImplicit (ASTContext &Context,
7241
7241
StaticSpellingKind StaticSpelling,
7242
7242
DeclName Name, SourceLoc NameLoc, bool Async,
7243
- bool Throws, GenericParamList *GenericParams,
7243
+ bool Throws, TypeRepr *ThrowsType, GenericParamList *GenericParams,
7244
7244
ParameterList *BodyParams, Type FnRetType,
7245
7245
DeclContext *Parent) {
7246
7246
assert (FnRetType);
7247
7247
auto *const FD = FuncDecl::createImpl (
7248
7248
Context, SourceLoc (), StaticSpelling, SourceLoc (), Name, NameLoc, Async,
7249
- SourceLoc (), Throws, SourceLoc (), nullptr , GenericParams, Parent, ClangNode ());
7249
+ SourceLoc (), Throws, SourceLoc (), ThrowsType , GenericParams, Parent, ClangNode ());
7250
7250
FD->setImplicit ();
7251
7251
FD->setParameters (BodyParams);
7252
7252
FD->setResultInterfaceType (FnRetType);
@@ -7255,13 +7255,13 @@ FuncDecl *FuncDecl::createImplicit(ASTContext &Context,
7255
7255
7256
7256
FuncDecl *FuncDecl::createImported (ASTContext &Context, SourceLoc FuncLoc,
7257
7257
DeclName Name, SourceLoc NameLoc,
7258
- bool Throws, ParameterList *BodyParams,
7258
+ bool Throws, TypeRepr *ThrowsType, ParameterList *BodyParams,
7259
7259
Type FnRetType, DeclContext *Parent,
7260
7260
ClangNode ClangN) {
7261
7261
assert (ClangN && FnRetType);
7262
7262
auto *const FD = FuncDecl::createImpl (
7263
7263
Context, SourceLoc (), StaticSpellingKind::None, FuncLoc, Name, NameLoc,
7264
- /* Async=*/ false , SourceLoc (), Throws, SourceLoc (), nullptr ,
7264
+ /* Async=*/ false , SourceLoc (), Throws, SourceLoc (), ThrowsType ,
7265
7265
/* GenericParams=*/ nullptr , Parent, ClangN);
7266
7266
FD->setParameters (BodyParams);
7267
7267
FD->setResultInterfaceType (FnRetType);
0 commit comments