Skip to content

Commit b79fe6e

Browse files
honglookercopybara-github
authored andcommitted
hpb: rm MoveMessage as amigo
PiperOrigin-RevId: 754925277
1 parent aba2075 commit b79fe6e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

hpb/backend/upb/interop.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ namespace hpb::interop::upb {
3333
// TODO: b/365824801 - consider rename to OwnMessage
3434
template <typename T>
3535
T MoveMessage(upb_Message* msg, upb_Arena* arena) {
36-
return T(msg, arena);
36+
return internal::PrivateAccess::InvokeConstructor<T>(msg, arena);
3737
}
3838

3939
template <typename T>

hpb_generator/gen_messages.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,6 @@ void WriteModelPublicDeclaration(
267267
friend struct ::hpb::internal::PrivateAccess;
268268
friend Proxy;
269269
friend CProxy;
270-
friend $0(hpb::interop::upb::MoveMessage<$0>(upb_Message* msg,
271-
upb_Arena* arena));
272270
)cc",
273271
ClassName(descriptor),
274272
upb::generator::CApiMessageType(descriptor->full_name()),

0 commit comments

Comments
 (0)