Silence g++ 4.9 build issue in unit tests

Stopgap measure until we can just use static_assert().

llvm-svn: 198273
This commit is contained in:
Alp Toker 2014-01-01 06:57:01 +00:00
parent 3ca9c86825
commit daef78c344
1 changed files with 2 additions and 1 deletions

View File

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