[clang] c29f063 - [clang][Interp] Add a missing static_assert message

Timm Bäder via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 22 01:33:09 PDT 2022


Author: Timm Bäder
Date: 2022-10-22T10:32:05+02:00
New Revision: c29f0638c1e17635ad0c0f2fc37bd16c81db1a9b

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

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

This broke a builder:
https://lab.llvm.org/buildbot/#builders/139/builds/29923

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang/test/AST/Interp/arrays.cpp b/clang/test/AST/Interp/arrays.cpp
index 1269e9dbb2b1..17829189f85e 100644
--- a/clang/test/AST/Interp/arrays.cpp
+++ b/clang/test/AST/Interp/arrays.cpp
@@ -91,7 +91,7 @@ constexpr int addThreeElements(const int v[3]) {
   return v[0] + v[1] + v[2];
 }
 constexpr int is[] = {10, 20, 30 };
-static_assert(addThreeElements(is) == 60);
+static_assert(addThreeElements(is) == 60, "");
 
 struct fred {
   char s [6];


        


More information about the cfe-commits mailing list