From: David Blaikie Date: Thu, 2 Jan 2014 18:29:40 +0000 (+0000) Subject: Use LLVM_STATIC_ASSERT rather than a hand-rolled implementation. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=028b81649610aa156c50e6d2366cd3a12fe71ba2;p=oota-llvm.git 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 --- diff --git a/unittests/IR/ValueMapTest.cpp b/unittests/IR/ValueMapTest.cpp index ffbe6615282..5493e3e1e39 100644 --- a/unittests/IR/ValueMapTest.cpp +++ b/unittests/IR/ValueMapTest.cpp @@ -117,8 +117,8 @@ TYPED_TEST(ValueMapTest, OperationsWork) { template void CompileAssertHasType(VarType) { - LLVM_ATTRIBUTE_UNUSED typedef char - NOT_SAME[is_same::value ? 1 : -1]; + LLVM_STATIC_ASSERT((is_same::value), + "Not the same type"); } TYPED_TEST(ValueMapTest, Iteration) {