diff --git a/test/core/iomgr/poller/eventmanager_libuv_test.cc b/test/core/iomgr/poller/eventmanager_libuv_test.cc index c772d5cd949..724a7a2f235 100644 --- a/test/core/iomgr/poller/eventmanager_libuv_test.cc +++ b/test/core/iomgr/poller/eventmanager_libuv_test.cc @@ -58,7 +58,9 @@ TEST(LibuvEventManager, ShutdownRefAsync) { for (int j = 0; j < i; j++) { em->ShutdownRef(); } - grpc_core::Thread deleter("deleter", [em](void*) { delete em; }, nullptr); + grpc_core::Thread deleter( + "deleter", [](void* em) { delete static_cast(em); }, + em); deleter.Start(); gpr_sleep_until(grpc_timeout_milliseconds_to_deadline(1)); for (int j = 0; j < i; j++) {