From b9648d49b537757c746537243f6a0f0b780e2799 Mon Sep 17 00:00:00 2001 From: CEL Dev Team Date: Mon, 5 May 2025 14:12:56 -0700 Subject: [PATCH] Automated Code Change PiperOrigin-RevId: 755069590 --- common/memory.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common/memory.h b/common/memory.h index dccce21b4..12638dc6c 100644 --- a/common/memory.h +++ b/common/memory.h @@ -1363,7 +1363,7 @@ class PoolingMemoryManager final { // the destructor may be called at some point in the future. static bool OwnCustomDestructor(google::protobuf::Arena* ABSL_NONNULL arena, void* object, - absl::Nonnull destruct) { + void (*ABSL_NONNULL destruct)(void*)) { ABSL_DCHECK(destruct != nullptr); arena->OwnCustomDestructor(object, destruct); return true; @@ -1458,8 +1458,7 @@ class MemoryManager final { // be called at some point in the future, `false` if will definitely not be // called. All pooling memory managers return `true` while the reference // counting memory manager returns `false`. - bool OwnCustomDestructor(void* object, - absl::Nonnull destruct) { + bool OwnCustomDestructor(void* object, void (*ABSL_NONNULL destruct)(void*)) { ABSL_DCHECK(destruct != nullptr); if (arena_ == nullptr) { return false;