summaryrefslogtreecommitdiffstats
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
commitdaef78c3448b03462708f1724ad6c5c04975c841 (patch)
tree2d934896290e53e55ef3f4c3920de283da2cd536
parent3ca9c86825a6ec37e853f16a4b54fbea8934d826 (diff)
downloadbcm5719-llvm-daef78c3448b03462708f1724ad6c5c04975c841.tar.gz
bcm5719-llvm-daef78c3448b03462708f1724ad6c5c04975c841.zip
Silence g++ 4.9 build issue in unit tests
Stopgap measure until we can just use static_assert(). llvm-svn: 198273
-rw-r--r--llvm/unittests/IR/ValueMapTest.cpp3
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) {
OpenPOWER on IntegriCloud