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