Skip to content

Commit 6f8f19e

Browse files
committed
Use Recovery-Provided Variable When Parsing 'async'
1 parent ea8a4e1 commit 6f8f19e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Parse/ParseDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7096,7 +7096,7 @@ ParserResult<FuncDecl> Parser::parseDeclFunc(SourceLoc StaticLoc,
70967096
// Create the decl for the func and add it to the parent scope.
70977097
auto *FD = FuncDecl::create(Context, StaticLoc, StaticSpelling,
70987098
FuncLoc, FullName, NameLoc,
7099-
/*Async=*/asyncLoc.isValid(), asyncLoc,
7099+
/*Async=*/isAsync, asyncLoc,
71007100
/*Throws=*/throwsLoc.isValid(), throwsLoc,
71017101
GenericParams,
71027102
BodyParams, FuncRetTy,

0 commit comments

Comments
 (0)