Skip to content

Commit 481715a

Browse files
CodaFiHarlan
authored andcommitted
Ensure RawSyntax macro parameters are the same with NDEBUG (#11196)
I forgot to reset the macro parameters after converting them to varargs, which didn't get caught running PR testing. This patch ensures they're all the same.
1 parent 1f94eca commit 481715a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/swift/Syntax/RawSyntax.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ using llvm::StringRef;
4646
#define syntax_assert_child_kind(Raw, Cursor, ExpectedKind) \
4747
(assert(Raw->getChild(Cursor)->Kind == ExpectedKind));
4848
#else
49-
#define syntax_assert_child_kind(Raw, Cursor, Kind) ({});
49+
#define syntax_assert_child_kind(Raw, Cursor, ExpectedKind) ({});
5050
#endif
5151

5252
#ifndef NDEBUG
@@ -66,7 +66,7 @@ using llvm::StringRef;
6666
} \
6767
})
6868
#else
69-
#define syntax_assert_child_token(Raw, Cursor, ...) ({});
69+
#define syntax_assert_child_token(Raw, CursorName, ...) ({});
7070
#endif
7171

7272
#ifndef NDEBUG
@@ -87,7 +87,7 @@ using llvm::StringRef;
8787
} \
8888
})
8989
#else
90-
#define syntax_assert_child_token_text(Raw, Cursor, TokenKind, Text) ({});
90+
#define syntax_assert_child_token_text(Raw, CursorName, TokenKind, ...) ({});
9191
#endif
9292

9393
#ifndef NDEBUG

0 commit comments

Comments
 (0)