summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/IR
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
commitcf01800b1f5cae211f1a7685f5d21ba26c74b52b (patch)
treef0c340e9f9abd034bf97cf1f38084e11db749d8f /llvm/unittests/IR
parent7bc33bf934777a580977cd0dd7757795f41e6b57 (diff)
downloadbcm5719-llvm-cf01800b1f5cae211f1a7685f5d21ba26c74b52b.tar.gz
bcm5719-llvm-cf01800b1f5cae211f1a7685f5d21ba26c74b52b.zip
[C++11] Replace LLVM_STATIC_ASSERT with static_assert, we now have
access to it on all host toolchains. llvm-svn: 202642
Diffstat (limited to 'llvm/unittests/IR')
-rw-r--r--llvm/unittests/IR/ValueMapTest.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/unittests/IR/ValueMapTest.cpp b/llvm/unittests/IR/ValueMapTest.cpp
index 5493e3e1e39..4c8a4a9372d 100644
--- a/llvm/unittests/IR/ValueMapTest.cpp
+++ b/llvm/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) {
OpenPOWER on IntegriCloud