summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-01-02 18:29:40 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-01-02 18:29:40 +0000
commit028b81649610aa156c50e6d2366cd3a12fe71ba2 (patch)
treecf55ab377d7d4c79f644246e6e51fb60d61ae1ec /unittests
parenta7133ee752b6bb123b0e6f049a900e1ff4028889 (diff)
downloadllvm-028b81649610aa156c50e6d2366cd3a12fe71ba2.tar.gz
llvm-028b81649610aa156c50e6d2366cd3a12fe71ba2.tar.bz2
llvm-028b81649610aa156c50e6d2366cd3a12fe71ba2.tar.xz
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
Diffstat (limited to 'unittests')
-rw-r--r--unittests/IR/ValueMapTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/unittests/IR/ValueMapTest.cpp b/unittests/IR/ValueMapTest.cpp
index ffbe661528..5493e3e1e3 100644
--- a/unittests/IR/ValueMapTest.cpp
+++ b/unittests/IR/ValueMapTest.cpp
@@ -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) {