Added missing PROTOBUF_MUSTTAIL, to fix presubmit check.

PiperOrigin-RevId: 564379578
pull/14018/head
Joshua Haberman 1 year ago committed by Copybara-Service
parent b106bb2abc
commit 229752ddf2
  1. 6
      src/google/protobuf/generated_message_tctable_full.cc
  2. 4
      src/google/protobuf/generated_message_tctable_impl.h

@ -47,11 +47,13 @@ namespace internal {
using ::google::protobuf::internal::DownCast;
const char* TcParser::GenericFallback(PROTOBUF_TC_PARAM_DECL) {
return GenericFallbackImpl<Message, UnknownFieldSet>(PROTOBUF_TC_PARAM_PASS);
PROTOBUF_MUSTTAIL return GenericFallbackImpl<Message, UnknownFieldSet>(
PROTOBUF_TC_PARAM_PASS);
}
const char* TcParser::ReflectionFallback(PROTOBUF_TC_PARAM_DECL) {
if (PROTOBUF_PREDICT_FALSE(MustFallbackToGeneric(PROTOBUF_TC_PARAM_PASS))) {
bool must_fallback_to_generic = (ptr == nullptr);
if (PROTOBUF_PREDICT_FALSE(must_fallback_to_generic)) {
PROTOBUF_MUSTTAIL return GenericFallback(PROTOBUF_TC_PARAM_PASS);
}

@ -408,10 +408,6 @@ class PROTOBUF_EXPORT TcParser final {
// the function is used as a way to get a UnknownFieldOps vtable, returned
// via the `const char*` return type. See `GetUnknownFieldOps()`
static bool MustFallbackToGeneric(PROTOBUF_TC_PARAM_NO_DATA_DECL) {
return ptr == nullptr;
}
static const char* GenericFallback(PROTOBUF_TC_PARAM_DECL);
static const char* GenericFallbackLite(PROTOBUF_TC_PARAM_DECL);
static const char* ReflectionFallback(PROTOBUF_TC_PARAM_DECL);

Loading…
Cancel
Save