From d955a548e10f9c68dcdc8cf070287295e3a92768 Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Mon, 12 Dec 2022 12:02:56 -0800 Subject: [PATCH] Fix open-source builds due to references to lazy fields. PiperOrigin-RevId: 494789853 --- src/google/protobuf/generated_message_tctable_lite.cc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/google/protobuf/generated_message_tctable_lite.cc b/src/google/protobuf/generated_message_tctable_lite.cc index a541271285..d2c89e8266 100644 --- a/src/google/protobuf/generated_message_tctable_lite.cc +++ b/src/google/protobuf/generated_message_tctable_lite.cc @@ -1797,13 +1797,6 @@ bool TcParser::ChangeOneof(const TcParseTableBase* table, } break; } - case field_layout::kRepLazy: { - auto& field = RefAt(msg, current_entry->offset); - if (!msg->GetArenaForAllocation()) { - delete field; - } - break; - } default: GOOGLE_LOG(DFATAL) << "message rep not handled: " << (current_rep >> field_layout::kRepShift);