From 96986fb362f0997079b37de9656a851b54b465ec Mon Sep 17 00:00:00 2001 From: Cheng Date: Sun, 8 Dec 2024 11:25:40 +0900 Subject: [PATCH] Use auto* for pointers (#1662) --- mlx/compile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlx/compile.cpp b/mlx/compile.cpp index 44bab0298..9bfdb6ee9 100644 --- a/mlx/compile.cpp +++ b/mlx/compile.cpp @@ -913,7 +913,7 @@ std::function(const std::vector&)> compile( auto pfun = std::shared_ptr< std::function(const std::vector&)>>( new std::function(const std::vector&)>{fun}, - [](auto p) { + [](auto* p) { detail::compile_erase(reinterpret_cast(p)); delete p; });