forked from OSchip/llvm-project
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:
parent
3ca9c86825
commit
daef78c344
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue