[clang][Interp] Add missing static_assert messages
authorTimm Bäder <tbaeder@redhat.com>
Thu, 30 Mar 2023 13:43:14 +0000 (15:43 +0200)
committerTimm Bäder <tbaeder@redhat.com>
Thu, 30 Mar 2023 13:43:43 +0000 (15:43 +0200)
This broke builders, e.g.
https://lab.llvm.org/buildbot/#builders/139/builds/38250

clang/test/AST/Interp/functions.cpp

index 48862d3..9c0d516 100644 (file)
@@ -150,7 +150,7 @@ namespace FunctionReturnType {
 
     return m;
   }
-  static_assert(foo() == 10);
+  static_assert(foo() == 10, "");
 
   struct S {
     int i;
@@ -158,7 +158,7 @@ namespace FunctionReturnType {
   };
 
   constexpr S s{ 12 };
-  static_assert(s.fp == nullptr); // zero-initialized function pointer.
+  static_assert(s.fp == nullptr, ""); // zero-initialized function pointer.
 }
 
 }