Skip to content

Commit 3930e33

Browse files
committed
[clang][Interp] Add missing static_assert messages
This broke builders, e.g. https://lab.llvm.org/buildbot/#builders/139/builds/38250
1 parent 99e57f0 commit 3930e33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/test/AST/Interp/functions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,15 +150,15 @@ namespace FunctionReturnType {
150150

151151
return m;
152152
}
153-
static_assert(foo() == 10);
153+
static_assert(foo() == 10, "");
154154

155155
struct S {
156156
int i;
157157
void (*fp)();
158158
};
159159

160160
constexpr S s{ 12 };
161-
static_assert(s.fp == nullptr); // zero-initialized function pointer.
161+
static_assert(s.fp == nullptr, ""); // zero-initialized function pointer.
162162
}
163163

164164
}

0 commit comments

Comments
 (0)