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>
PROTOBUF_NOINLINE void DeleteOutOfLineHelper() {
// TODO(b/188560391): Determine if this branch is needed.
if (!arena()) {
delete PtrValue<Container<T>>();
ptr_ = 0;
}
delete PtrValue<Container<T>>();
// TODO(b/188560391): This store is load-bearing. Since we are destructing
// the message at this point, see if we can eliminate it.
ptr_ = 0;
}
template <typename T>

Loading…
Cancel
Save