summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8dff260)
raw | patch | inline | side by side (parent: 8dff260)
author | Alp Toker <alp@nuanti.com> | |
Wed, 1 Jan 2014 06:57:01 +0000 (06:57 +0000) | ||
committer | Alp Toker <alp@nuanti.com> | |
Wed, 1 Jan 2014 06:57:01 +0000 (06:57 +0000) |
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198273 91177308-0d34-0410-b5e6-96231b3b80d8
unittests/IR/ValueMapTest.cpp | patch | blob | history |
index 5aaf905836285274c8fdce3351a22e02b935de63..cc844ba30b0b629a17250298bb2bb4ce5bdbf900 100644 (file)
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) {