From e56ebcec8d0e637b09a4dd1a29d78facb60b3900 Mon Sep 17 00:00:00 2001 From: Mike Kruskal Date: Fri, 22 Mar 2024 12:21:04 -0700 Subject: [PATCH] Migrate direct callers of options().packed() to is_packed() helper. PiperOrigin-RevId: 618254593 --- src/google/protobuf/generated_message_reflection.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/google/protobuf/generated_message_reflection.cc b/src/google/protobuf/generated_message_reflection.cc index 60a54204c0..5334e401dc 100644 --- a/src/google/protobuf/generated_message_reflection.cc +++ b/src/google/protobuf/generated_message_reflection.cc @@ -2231,8 +2231,7 @@ void Reflection::AddEnumValueInternal(Message* message, int value) const { if (field->is_extension()) { MutableExtensionSet(message)->AddEnum(field->number(), field->type(), - field->options().packed(), value, - field); + field->is_packed(), value, field); } else { AddField(message, field, value); }