Remove unnecessary branch.

PiperOrigin-RevId: 551006963
pull/13378/head
Chris Kennelly 2 years ago committed by Copybara-Service
parent d4db41d395
commit caf55184b2
  1. 9
      src/google/protobuf/metadata_lite.h

@ -182,11 +182,10 @@ class PROTOBUF_EXPORT InternalMetadata {
template <typename T> template <typename T>
PROTOBUF_NOINLINE void DeleteOutOfLineHelper() { PROTOBUF_NOINLINE void DeleteOutOfLineHelper() {
// TODO(b/188560391): Determine if this branch is needed. delete PtrValue<Container<T>>();
if (!arena()) { // TODO(b/188560391): This store is load-bearing. Since we are destructing
delete PtrValue<Container<T>>(); // the message at this point, see if we can eliminate it.
ptr_ = 0; ptr_ = 0;
}
} }
template <typename T> template <typename T>

Loading…
Cancel
Save