diff options
-rw-r--r-- | llvm/unittests/IR/ValueMapTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/unittests/IR/ValueMapTest.cpp b/llvm/unittests/IR/ValueMapTest.cpp index 5aaf9058362..cc844ba30b0 100644 --- a/llvm/unittests/IR/ValueMapTest.cpp +++ b/llvm/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) { |