File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff 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
4748struct BridgedOptionalDiagnosticEngine {
4849 void *_Nullable object;
@@ -66,7 +67,7 @@ class BridgedDiagnosticArgument {
6667};
6768
6869class BridgedDiagnosticFixIt {
69- int64_t storage[6 ];
70+ int64_t storage[7 ];
7071
7172public:
7273#ifdef USED_IN_CPP_SOURCE
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ BridgedDiagnosticArgument::BridgedDiagnosticArgument(BridgedStringRef s)
3535 : BridgedDiagnosticArgument(DiagnosticArgument(s.get())) {}
3636
3737static_assert (sizeof (BridgedDiagnosticFixIt) >= sizeof (DiagnosticInfo::FixIt),
38- " BridgedDiagnosticArgument has wrong size" );
38+ " BridgedDiagnosticFixIt has wrong size" );
3939
4040static SourceLoc getSourceLoc (BridgedSourceLoc bridgedLoc) {
4141 return SourceLoc (llvm::SMLoc::getFromPointer (bridgedLoc.getLoc ()));
You can’t perform that action at this time.
0 commit comments