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 {
40
40
#include " swift/AST/DiagnosticsAll.def"
41
41
} BridgedDiagID;
42
42
43
- struct BridgedDiagnosticEngine {
43
+ // Must match the definition of BridgedDiagnosticEngine in CASTBridging.h.
44
+ typedef struct {
44
45
void * _Nonnull object;
45
- };
46
+ } BridgedDiagnosticEngine ;
46
47
47
48
struct BridgedOptionalDiagnosticEngine {
48
49
void *_Nullable object;
@@ -66,7 +67,7 @@ class BridgedDiagnosticArgument {
66
67
};
67
68
68
69
class BridgedDiagnosticFixIt {
69
- int64_t storage[6 ];
70
+ int64_t storage[7 ];
70
71
71
72
public:
72
73
#ifdef USED_IN_CPP_SOURCE
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ BridgedDiagnosticArgument::BridgedDiagnosticArgument(BridgedStringRef s)
35
35
: BridgedDiagnosticArgument(DiagnosticArgument(s.get())) {}
36
36
37
37
static_assert (sizeof (BridgedDiagnosticFixIt) >= sizeof(DiagnosticInfo::FixIt),
38
- "BridgedDiagnosticArgument has wrong size");
38
+ "BridgedDiagnosticFixIt has wrong size");
39
39
40
40
static SourceLoc getSourceLoc (BridgedSourceLoc bridgedLoc) {
41
41
return SourceLoc (llvm::SMLoc::getFromPointer (bridgedLoc.getLoc ()));
You can’t perform that action at this time.
0 commit comments