[clang] 3930e33 - [clang][Interp] Add missing static_assert messages

Timm Bäder via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 30 06:44:00 PDT 2023


Author: Timm Bäder
Date: 2023-03-30T15:43:43+02:00
New Revision: 3930e3331e7173bbacb7181015d8f7ca93f4aaef

URL: https://github.com/llvm/llvm-project/commit/3930e3331e7173bbacb7181015d8f7ca93f4aaef
DIFF: https://github.com/llvm/llvm-project/commit/3930e3331e7173bbacb7181015d8f7ca93f4aaef.diff

LOG: [clang][Interp] Add missing static_assert messages

This broke builders, e.g.
https://lab.llvm.org/buildbot/#builders/139/builds/38250

Added: 
    

Modified: 
    clang/test/AST/Interp/functions.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/AST/Interp/functions.cpp b/clang/test/AST/Interp/functions.cpp
index 48862d399722..9c0d51686581 100644
--- a/clang/test/AST/Interp/functions.cpp
+++ b/clang/test/AST/Interp/functions.cpp
@@ -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.
 }
 
 }


        


More information about the cfe-commits mailing list