Add an explicit null check so that ClangTidy doesn't complain about nullable pointers.

PiperOrigin-RevId: 715026649
pull/19972/head
Tony Liao 1 month ago committed by Copybara-Service
parent d1990d968a
commit bfbed2ad9c
  1. 1
      src/google/protobuf/compiler/cpp/parse_function_generator.cc

@ -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())

Loading…
Cancel
Save