mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-08 13:26:19 +00:00
Use LLVM_STATIC_ASSERT rather than a hand-rolled implementation.
llvm-svn: 198330
This commit is contained in:
parent
ba17ca1e89
commit
4f05b70498
@ -117,8 +117,8 @@ TYPED_TEST(ValueMapTest, OperationsWork) {
|
||||
|
||||
template<typename ExpectedType, typename VarType>
|
||||
void CompileAssertHasType(VarType) {
|
||||
LLVM_ATTRIBUTE_UNUSED typedef char
|
||||
NOT_SAME[is_same<ExpectedType, VarType>::value ? 1 : -1];
|
||||
LLVM_STATIC_ASSERT((is_same<ExpectedType, VarType>::value),
|
||||
"Not the same type");
|
||||
}
|
||||
|
||||
TYPED_TEST(ValueMapTest, Iteration) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user