summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-01-01 06:57:01 +0000
committerAlp Toker <alp@nuanti.com>2014-01-01 06:57:01 +0000
commita18007d9d60c937381f28755bde26a7a35136085 (patch)
tree81f655e7eb84571922f214662c48e37f925beda5 /unittests
parent8dff2602677169669c318180a6e2f2a49f853f56 (diff)
downloadllvm-a18007d9d60c937381f28755bde26a7a35136085.tar.gz
llvm-a18007d9d60c937381f28755bde26a7a35136085.tar.bz2
llvm-a18007d9d60c937381f28755bde26a7a35136085.tar.xz
Silence g++ 4.9 build issue in unit tests
Stopgap measure until we can just use static_assert(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198273 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/IR/ValueMapTest.cpp3
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) {