diff --git a/sycl/include/CL/sycl/handler.hpp b/sycl/include/CL/sycl/handler.hpp index 47f5155e7399c..83cc08f88cbbf 100644 --- a/sycl/include/CL/sycl/handler.hpp +++ b/sycl/include/CL/sycl/handler.hpp @@ -757,8 +757,9 @@ class __SYCL_EXPORT handler { /// \param Acc is a SYCL accessor describing required memory region. template - void require(accessor &Acc) { + void + require(accessor + Acc) { #ifndef __SYCL_DEVICE_ONLY__ associateWithHandler(&Acc, AccTarget); #else