Skip to content

Commit 6bf7c0c

Browse files
committed
ASTBridging: make BridgedDiagnosticEngine a typedef again
Diverging from the definition in CASTBridging probably causes a compiler crash in the swift runtime when getting the metatype for BridgedDiagnosticEngine. rdar://116686158
1 parent a14f280 commit 6bf7c0c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

include/swift/AST/ASTBridging.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@ typedef enum ENUM_EXTENSIBILITY_ATTR(open) BridgedDiagID : uint32_t {
4040
#include "swift/AST/DiagnosticsAll.def"
4141
} BridgedDiagID;
4242

43-
struct BridgedDiagnosticEngine {
43+
// Must match the definition of BridgedDiagnosticEngine in CASTBridging.h.
44+
typedef struct {
4445
void * _Nonnull object;
45-
};
46+
} BridgedDiagnosticEngine;
4647

4748
struct BridgedOptionalDiagnosticEngine {
4849
void *_Nullable object;

0 commit comments

Comments
 (0)