From 028b81649610aa156c50e6d2366cd3a12fe71ba2 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Thu, 2 Jan 2014 18:29:40 +0000 Subject: [PATCH] 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 --- unittests/IR/ValueMapTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.34.1