diff --git a/rocclr/runtime/platform/kernel.cpp b/rocclr/runtime/platform/kernel.cpp index 3a6fd1ab49..ed82706fe2 100644 --- a/rocclr/runtime/platform/kernel.cpp +++ b/rocclr/runtime/platform/kernel.cpp @@ -75,7 +75,7 @@ void KernelParameters::set(size_t index, size_t size, const void* value, bool sv if (desc.type_ == T_POINTER && desc.size_ != 0) { if (svmBound) { - LP64_SWITCH(uint32_value, uint64_value) = (LP64_SWITCH(uint32_t, uint64_t))value; + LP64_SWITCH(uint32_value, uint64_value) = *(LP64_SWITCH(uint32_t*, uint64_t*))value; svmBound_[index] = true; } else if ((value == NULL) || (static_cast(value) == NULL)) { LP64_SWITCH(uint32_value, uint64_value) = 0;