Skip to content

Commit b113a2e

Browse files
Abseil Teamcopybara-github
authored andcommitted
Internal cleanup
PiperOrigin-RevId: 957247597 Change-Id: Ic077df44adeb8194b2b0b49346bc6e7f26cded32
1 parent 5817b42 commit b113a2e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

absl/debugging/symbolize_elf.inc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
#include <cstdio>
6868
#include <cstdlib>
6969
#include <cstring>
70+
#include <iterator>
7071
#include <memory>
7172

7273
#include "absl/base/casts.h"
@@ -1320,7 +1321,7 @@ const char *Symbolizer::FindSymbolInCache(const void *const pc) {
13201321
if (pc == nullptr) return nullptr;
13211322

13221323
SymbolCacheLine *line = GetCacheLine(pc);
1323-
for (size_t i = 0; i < ABSL_ARRAYSIZE(line->pc); ++i) {
1324+
for (size_t i = 0; i < std::size(line->pc); ++i) {
13241325
if (line->pc[i] == pc) {
13251326
AgeSymbols(line);
13261327
line->age[i] = 0;
@@ -1338,7 +1339,7 @@ const char *Symbolizer::InsertSymbolInCache(const void *const pc,
13381339
uint32_t max_age = 0;
13391340
size_t oldest_index = 0;
13401341
bool found_oldest_index = false;
1341-
for (size_t i = 0; i < ABSL_ARRAYSIZE(line->pc); ++i) {
1342+
for (size_t i = 0; i < std::size(line->pc); ++i) {
13421343
if (line->pc[i] == nullptr) {
13431344
AgeSymbols(line);
13441345
line->pc[i] = pc;

0 commit comments

Comments
 (0)