Skip to content

Commit 93db089

Browse files
committed
ASTBridging: fix storage size of BridgedDiagnosticFixIt
and fix the static_assert error message
1 parent 6bf7c0c commit 93db089

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/swift/AST/ASTBridging.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class BridgedDiagnosticArgument {
6767
};
6868

6969
class BridgedDiagnosticFixIt {
70-
int64_t storage[6];
70+
int64_t storage[7];
7171

7272
public:
7373
#ifdef USED_IN_CPP_SOURCE

lib/AST/ASTBridging.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ BridgedDiagnosticArgument::BridgedDiagnosticArgument(BridgedStringRef s)
3535
: BridgedDiagnosticArgument(DiagnosticArgument(s.get())) {}
3636

3737
static_assert(sizeof(BridgedDiagnosticFixIt) >= sizeof(DiagnosticInfo::FixIt),
38-
"BridgedDiagnosticArgument has wrong size");
38+
"BridgedDiagnosticFixIt has wrong size");
3939

4040
static SourceLoc getSourceLoc(BridgedSourceLoc bridgedLoc) {
4141
return SourceLoc(llvm::SMLoc::getFromPointer(bridgedLoc.getLoc()));

0 commit comments

Comments
 (0)