Use LLVM_STATIC_ASSERT rather than a hand-rolled implementation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198330 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Blaikie 2014-01-02 18:29:40 +00:00
parent a7133ee752
commit 028b816496

View File

@ -117,8 +117,8 @@ TYPED_TEST(ValueMapTest, OperationsWork) {
template<typename ExpectedType, typename VarType>
void CompileAssertHasType(VarType) {
LLVM_ATTRIBUTE_UNUSED typedef char
NOT_SAME[is_same<ExpectedType, VarType>::value ? 1 : -1];
LLVM_STATIC_ASSERT((is_same<ExpectedType, VarType>::value),
"Not the same type");
}
TYPED_TEST(ValueMapTest, Iteration) {