[clang] 7d9511b - [clang][Interp] Add missing static_assert messages
Timm Bäder via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 6 03:04:28 PDT 2023
Author: Timm Bäder
Date: 2023-04-06T12:03:45+02:00
New Revision: 7d9511b2e33f1981cd846dd2493c6d96ece2c77e
URL: https://github.com/llvm/llvm-project/commit/7d9511b2e33f1981cd846dd2493c6d96ece2c77e
DIFF: https://github.com/llvm/llvm-project/commit/7d9511b2e33f1981cd846dd2493c6d96ece2c77e.diff
LOG: [clang][Interp] Add missing static_assert messages
This broke build bots, e.g:
https://lab.llvm.org/buildbot/#/builders/139/builds/38697
Added:
Modified:
clang/test/AST/Interp/floats.cpp
Removed:
################################################################################
diff --git a/clang/test/AST/Interp/floats.cpp b/clang/test/AST/Interp/floats.cpp
index 3b392d3b6727b..71f585ee70a9c 100644
--- a/clang/test/AST/Interp/floats.cpp
+++ b/clang/test/AST/Interp/floats.cpp
@@ -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, "");
};
More information about the cfe-commits
mailing list