Skip to content

Commit 5a29c05

Browse files
committed
fix argument ordering in call to AccessorDecl::create
async before throws, just like in language's syntax
1 parent cb6b1ea commit 5a29c05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ClangImporter/ImportDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ static FuncDecl *createFuncOrAccessor(ASTContext &ctx, SourceLoc funcLoc,
172172
accessorInfo->Kind, accessorInfo->Storage,
173173
/*StaticLoc*/ SourceLoc(),
174174
StaticSpellingKind::None,
175-
throws, /*ThrowsLoc=*/SourceLoc(),
176175
async, /*AsyncLoc=*/SourceLoc(),
176+
throws, /*ThrowsLoc=*/SourceLoc(),
177177
genericParams, bodyParams,
178178
resultTy, dc, clangNode);
179179
} else {

0 commit comments

Comments
 (0)