[clang][Interp] Add missing static_assert messages
authorTimm Bäder <tbaeder@redhat.com>
Thu, 6 Apr 2023 10:03:45 +0000 (12:03 +0200)
committerTimm Bäder <tbaeder@redhat.com>
Thu, 6 Apr 2023 10:03:45 +0000 (12:03 +0200)
This broke build bots, e.g:
https://lab.llvm.org/buildbot/#/builders/139/builds/38697

clang/test/AST/Interp/floats.cpp

index 3b392d3..71f585e 100644 (file)
@@ -87,8 +87,8 @@ namespace ZeroInit {
   };
 
   constexpr A<float> a{12};
-  static_assert(a.f == 0.0f);
+  static_assert(a.f == 0.0f, "");
 
   constexpr A<double> b{12};
-  static_assert(a.f == 0.0);
+  static_assert(a.f == 0.0, "");
 };