Skip to content

Commit ce3e0ac

Browse files
committed
AST: fix missing header files
`ForeignAsyncConvention.h` and `ForeignErrorConvention.h` must be included in `Decl.h`, because those types are used in an `llvm::Optional` in `Decl.h`.
1 parent 78c925b commit ce3e0ac

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

include/swift/AST/Decl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
#include "swift/AST/DefaultArgumentKind.h"
2727
#include "swift/AST/DiagnosticConsumer.h"
2828
#include "swift/AST/DiagnosticEngine.h"
29+
#include "swift/AST/ForeignAsyncConvention.h"
30+
#include "swift/AST/ForeignErrorConvention.h"
2931
#include "swift/AST/FreestandingMacroExpansion.h"
3032
#include "swift/AST/GenericParamKey.h"
3133
#include "swift/AST/IfConfigClause.h"
@@ -72,8 +74,6 @@ namespace swift {
7274
struct ExternalSourceLocs;
7375
class CaptureListExpr;
7476
class DeclRefExpr;
75-
class ForeignAsyncConvention;
76-
class ForeignErrorConvention;
7777
class LiteralExpr;
7878
class BraceStmt;
7979
class DeclAttributes;

lib/AST/Decl.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
#include "swift/AST/DiagnosticsSema.h"
2828
#include "swift/AST/ExistentialLayout.h"
2929
#include "swift/AST/Expr.h"
30-
#include "swift/AST/ForeignAsyncConvention.h"
31-
#include "swift/AST/ForeignErrorConvention.h"
3230
#include "swift/AST/GenericEnvironment.h"
3331
#include "swift/AST/GenericSignature.h"
3432
#include "swift/AST/Initializer.h"

0 commit comments

Comments
 (0)