Skip to content

Commit

Permalink
Add an explicit null check so that ClangTidy doesn't complain about n…
Browse files Browse the repository at this point in the history
…ullable pointers.

PiperOrigin-RevId: 715026649
  • Loading branch information
tonyliaoss authored and copybara-github committed Jan 13, 2025
1 parent d1990d9 commit bfbed2a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ static NumToEntryTable MakeNumToEntryTable(
start_new_block = false;
}

ABSL_DCHECK(block != nullptr);
auto skip_entry_num = (fnum - block->first_fnum) / 16;
auto skip_entry_index = (fnum - block->first_fnum) % 16;
while (skip_entry_num >= block->entries.size())
Expand Down

0 comments on commit bfbed2a

Please sign in to comment.