summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-03-02 13:10:45 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-03-02 13:10:45 +0000
commitfc6d7d6cf53a539555f2065a059300e181ddb94b (patch)
tree60a850e37851f56c889d017fa0bd5beb1fa689bf /unittests
parent742e43f807a528e5906a8eec67509baf9ae15bff (diff)
downloadllvm-fc6d7d6cf53a539555f2065a059300e181ddb94b.tar.gz
llvm-fc6d7d6cf53a539555f2065a059300e181ddb94b.tar.bz2
llvm-fc6d7d6cf53a539555f2065a059300e181ddb94b.tar.xz
[C++11] Replace LLVM_STATIC_ASSERT with static_assert, we now have
access to it on all host toolchains. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202642 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/IR/ValueMapTest.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/unittests/IR/ValueMapTest.cpp b/unittests/IR/ValueMapTest.cpp
index 5493e3e1e3..4c8a4a9372 100644
--- a/unittests/IR/ValueMapTest.cpp
+++ b/unittests/IR/ValueMapTest.cpp
@@ -117,8 +117,7 @@ TYPED_TEST(ValueMapTest, OperationsWork) {
template<typename ExpectedType, typename VarType>
void CompileAssertHasType(VarType) {
- LLVM_STATIC_ASSERT((is_same<ExpectedType, VarType>::value),
- "Not the same type");
+ static_assert((is_same<ExpectedType, VarType>::value), "Not the same type");
}
TYPED_TEST(ValueMapTest, Iteration) {