Always inline call to `Destroy<>()` in `DestroyProtos()`.

This reduces stack size in some builds where Destroy<> did not get inlined.

PiperOrigin-RevId: 584320630
pull/14799/head
Protobuf Team Bot 1 year ago committed by Copybara-Service
parent 54573a45d2
commit 1b8e15fa4e
  1. 2
      src/google/protobuf/repeated_ptr_field.cc

@ -88,7 +88,7 @@ void RepeatedPtrFieldBase::Reserve(int capacity) {
}
void RepeatedPtrFieldBase::DestroyProtos() {
Destroy<GenericTypeHandler<MessageLite>>();
PROTOBUF_ALWAYS_INLINE_CALL Destroy<GenericTypeHandler<MessageLite>>();
// TODO: Eliminate this store when invoked from the destructor,
// since it is dead.

Loading…
Cancel
Save