Internal change

PiperOrigin-RevId: 513133876
pull/11540/head
Protobuf Team Bot 2 years ago committed by Copybara-Service
parent 33958a70b0
commit 8a33295b8e
  1. 2
      src/google/protobuf/arena.h

@ -552,7 +552,7 @@ class PROTOBUF_EXPORT PROTOBUF_ALIGNAS(8) Arena final {
static_assert(
InternalHelper<T>::is_arena_constructable::value,
"CreateMessage can only construct types that are ArenaConstructable");
if (arena == nullptr) {
if (PROTOBUF_PREDICT_FALSE(arena == nullptr)) {
// Generated arena constructor T(Arena*) is protected. Call via
// InternalHelper.
return InternalHelper<T>::New();

Loading…
Cancel
Save