[clang] a97ff2d - [clang][Interp] Add missing static_assert message

Timm Bäder via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 7 04:41:43 PST 2024


Author: Timm Bäder
Date: 2024-02-07T13:41:27+01:00
New Revision: a97ff2d35af0a5c640c20abf4215c08e0e69aa41

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

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

This breaks builders:
https://lab.llvm.org/buildbot/#/builders/139/builds/58960

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang/test/AST/Interp/literals.cpp b/clang/test/AST/Interp/literals.cpp
index 000d2bc8a4f6c5..f5b5f77ffc624b 100644
--- a/clang/test/AST/Interp/literals.cpp
+++ b/clang/test/AST/Interp/literals.cpp
@@ -216,7 +216,7 @@ namespace PointerComparison {
 }
 
 namespace SizeOf {
-  static_assert(alignof(char&) == 1);
+  static_assert(alignof(char&) == 1, "");
 
   constexpr int soint = sizeof(int);
   constexpr int souint = sizeof(unsigned int);


        


More information about the cfe-commits mailing list