diff options
-rw-r--r-- | unittests/IR/ValueMapTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unittests/IR/ValueMapTest.cpp b/unittests/IR/ValueMapTest.cpp index 5aaf905836..cc844ba30b 100644 --- a/unittests/IR/ValueMapTest.cpp +++ b/unittests/IR/ValueMapTest.cpp @@ -117,7 +117,8 @@ TYPED_TEST(ValueMapTest, OperationsWork) { template<typename ExpectedType, typename VarType> void CompileAssertHasType(VarType) { - typedef char assert[is_same<ExpectedType, VarType>::value ? 1 : -1]; + LLVM_ATTRIBUTE_UNUSED typedef char + assert[is_same<ExpectedType, VarType>::value ? 1 : -1]; } TYPED_TEST(ValueMapTest, Iteration) { |