diff --git a/src/google/protobuf/generated_message_tctable_full.cc b/src/google/protobuf/generated_message_tctable_full.cc index 199e85a990..280aca768f 100644 --- a/src/google/protobuf/generated_message_tctable_full.cc +++ b/src/google/protobuf/generated_message_tctable_full.cc @@ -47,11 +47,13 @@ namespace internal { using ::google::protobuf::internal::DownCast; const char* TcParser::GenericFallback(PROTOBUF_TC_PARAM_DECL) { - return GenericFallbackImpl(PROTOBUF_TC_PARAM_PASS); + PROTOBUF_MUSTTAIL return GenericFallbackImpl( + 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); } diff --git a/src/google/protobuf/generated_message_tctable_impl.h b/src/google/protobuf/generated_message_tctable_impl.h index d437f99632..7de76cf1fd 100644 --- a/src/google/protobuf/generated_message_tctable_impl.h +++ b/src/google/protobuf/generated_message_tctable_impl.h @@ -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);