diff options
Diffstat (limited to 'unittests/IR/ValueMapTest.cpp')
-rw-r--r-- | unittests/IR/ValueMapTest.cpp | 4 |
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) { |