diff --git a/src/runtime/HalideBuffer.h b/src/runtime/HalideBuffer.h index 9b64ecd40e0b..8f25bf45e95e 100644 --- a/src/runtime/HalideBuffer.h +++ b/src/runtime/HalideBuffer.h @@ -2061,8 +2061,7 @@ class Buffer { } template - HALIDE_ALWAYS_INLINE storage_T * - address_of(Args... args) const { + HALIDE_ALWAYS_INLINE storage_T *address_of(Args... args) const { if (T_is_void) { return (storage_T *)(this->buf.host) + offset_of(0, args...) * type().bytes(); } else { @@ -2138,8 +2137,7 @@ class Buffer { template::value>::type> - HALIDE_ALWAYS_INLINE not_void_T & - operator()(int first, Args... rest) { + HALIDE_ALWAYS_INLINE not_void_T &operator()(int first, Args... rest) { static_assert(!T_is_void, "Cannot use operator() on Buffer types"); constexpr int expected_dims = 1 + (int)(sizeof...(rest));