Internal change

PiperOrigin-RevId: 693800434
pull/19071/head
Chris Kennelly 4 months ago committed by Copybara-Service
parent 8eeee0e3ca
commit d9a8e7a8fc
  1. 3
      src/google/protobuf/descriptor.cc

@ -2032,7 +2032,8 @@ internal::FlatAllocator::Allocation* DescriptorPool::Tables::CreateFlatAlloc(
typename std::tuple_element<sizeof...(T) - 1, std::tuple<T...>>::type>();
size_t total_size =
last_end + RoundUpTo<FlatAlloc::kMaxAlign>(sizeof(FlatAlloc));
char* data = static_cast<char*>(::operator new(total_size));
char* data = static_cast<char*>(::operator new(total_size
));
auto* res = ::new (data) FlatAlloc(ends);
flat_allocs_.emplace_back(res);

Loading…
Cancel
Save