Use LLVM_STATIC_ASSERT rather than a hand-rolled implementation.

llvm-svn: 198330
This commit is contained in:
David Blaikie 2014-01-02 18:29:40 +00:00
parent ba17ca1e89
commit 4f05b70498

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) {