diff options
Diffstat (limited to 'compiler/utils')
-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"; } |