Automated rollback of commit d9a8e7a8fc.

PiperOrigin-RevId: 694206968
pull/19181/head
Chris Kennelly 4 months ago committed by Copybara-Service
parent c1eb7c4eee
commit d102782022
  1. 3
      src/google/protobuf/descriptor.cc

@ -2032,8 +2032,7 @@ 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