Skip to content

Commit eabafdf

Browse files
committed
[NFC] Remove extra comma inside the macros.
The macros are all used with a semicolon after the macro invocation, so the comma inside the macro and outside the macro are redundant. This causes a warning in modern compilers with extra warnings enabled that it is quite spammy in the output. Remove the commas inside the macro to avoid the warning. This should not have any meningful effect in the result.
1 parent 5bb6f79 commit eabafdf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/swift/SIL/SILNode.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,16 +163,16 @@ class alignas(8) SILNode :
163163

164164
/// Adds a shared field for instruction class `I`.
165165
#define SHARED_FIELD(I, ...) \
166-
class { friend class I; __VA_ARGS__; } I;
166+
class { friend class I; __VA_ARGS__; } I
167167

168168
/// Adds a shared field for a template instruction class `I` which has a single
169169
/// template argument of type `T`.
170170
#define SHARED_TEMPLATE_FIELD(T, I, ...) \
171-
class { template <T> friend class I; __VA_ARGS__; } I;
172-
171+
class { template <T> friend class I; __VA_ARGS__; } I
172+
173173
/// Special case for `InstructionBaseWithTrailingOperands`.
174174
#define SHARED_TEMPLATE4_FIELD(T1, T2, T3, T4, I, ...) \
175-
class { template <T1, T2, T3, T4> friend class I; __VA_ARGS__; } I;
175+
class { template <T1, T2, T3, T4> friend class I; __VA_ARGS__; } I
176176

177177
// clang-format off
178178
union SharedUInt8Fields {

0 commit comments

Comments
 (0)