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); }