Skip to content

Commit

Permalink
Remove unnecessary branch.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 551006963
  • Loading branch information
ckennelly authored and copybara-github committed Jul 25, 2023
1 parent d4db41d commit caf5518
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/google/protobuf/metadata_lite.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit caf5518

Please sign in to comment.