Drop the assert.

The first part was actually wrong (should have been ==), so since it
wasn't actually working as intended, just drop it.

PiperOrigin-RevId: 501572981
pull/11539/head
Protobuf Team Bot 2 years ago committed by Copybara-Service
parent 426d344a6a
commit 9d432bd38b
  1. 3
      objectivec/GPBDescriptor.m

@ -553,9 +553,6 @@ uint32_t GPBFieldAlternateTag(GPBFieldDescriptor *self) {
#if defined(DEBUG) && DEBUG
NSAssert((coreDesc->flags & GPBFieldHasEnumDescriptor) != 0,
@"Field must have GPBFieldHasEnumDescriptor set");
NSAssert(((decriptorFlags & GPBDescriptorInitializationFlag_ClosedEnumSupportKnown) != 0) ||
(((coreDesc->flags & GPBFieldClosedEnum) != 0) == enumDescriptor_.isClosed),
@"Internal error, ClosedEnum flag doesn't agree with EnumDescriptor");
#endif // DEBUG
}

Loading…
Cancel
Save