diff options
author | Andreas Gampe <agampe@google.com> | 2014-11-03 22:57:30 -0800 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2014-11-03 23:40:41 -0800 |
commit | 785d2f2116bb57418d81bb55b55a087afee11053 (patch) | |
tree | 34e7ea4f2c7473c8fe173c64451b4153fc909cd7 /compiler/utils/arena_allocator.cc | |
parent | 07f09809c0575e985249450843b06f266b831fe1 (diff) | |
download | art-785d2f2116bb57418d81bb55b55a087afee11053.tar.gz art-785d2f2116bb57418d81bb55b55a087afee11053.tar.bz2 art-785d2f2116bb57418d81bb55b55a087afee11053.zip |
ART: Replace COMPILE_ASSERT with static_assert (compiler)
Replace all occurrences of COMPILE_ASSERT in the compiler tree.
Change-Id: Icc40a38c8bdeaaf7305ab3352a838a2cd7e7d840
Diffstat (limited to 'compiler/utils/arena_allocator.cc')
-rw-r--r-- | compiler/utils/arena_allocator.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/utils/arena_allocator.cc b/compiler/utils/arena_allocator.cc index 0c93f0a71b..004af98852 100644 --- a/compiler/utils/arena_allocator.cc +++ b/compiler/utils/arena_allocator.cc @@ -114,7 +114,7 @@ void ArenaAllocatorStatsImpl<kCount>::Dump(std::ostream& os, const Arena* first, << num_allocations << ", avg size: " << bytes_allocated / num_allocations << "\n"; } os << "===== Allocation by kind\n"; - COMPILE_ASSERT(arraysize(kAllocNames) == kNumArenaAllocKinds, check_arraysize_kAllocNames); + static_assert(arraysize(kAllocNames) == kNumArenaAllocKinds, "arraysize of kAllocNames"); for (int i = 0; i < kNumArenaAllocKinds; i++) { os << kAllocNames[i] << std::setw(10) << alloc_stats_[i] << "\n"; } |