Remove redundant [[noinline]].

Function implementation is defined out of line - having a noinline wrapper is just a pessimization.

PiperOrigin-RevId: 598886387
pull/15444/head
Protobuf Team Bot 1 year ago committed by Copybara-Service
parent deb2dff4e1
commit 55820f2b22
  1. 3
      src/google/protobuf/repeated_ptr_field.h

@ -1331,8 +1331,7 @@ inline Element* RepeatedPtrField<Element>::Mutable(int index)
}
template <typename Element>
PROTOBUF_NOINLINE Element* RepeatedPtrField<Element>::Add()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline Element* RepeatedPtrField<Element>::Add() ABSL_ATTRIBUTE_LIFETIME_BOUND {
return RepeatedPtrFieldBase::Add<TypeHandler>();
}

Loading…
Cancel
Save