Fix open-source builds due to references to lazy fields.

PiperOrigin-RevId: 494789853
test_494824070
Protobuf Team Bot 2 years ago committed by Copybara-Service
parent 1f58f1d7b8
commit d955a548e1
  1. 7
      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<LazyField*>(msg, current_entry->offset);
if (!msg->GetArenaForAllocation()) {
delete field;
}
break;
}
default:
GOOGLE_LOG(DFATAL) << "message rep not handled: "
<< (current_rep >> field_layout::kRepShift);

Loading…
Cancel
Save