SWDEV-374395 - Correct rhs.

Change-Id: I433d60344a6d23bc48f4db58d5501af89bc1989c


[ROCm/clr commit: 027f71ccfb]
This commit is contained in:
Jaydeep Patel
2022-12-20 11:37:49 +00:00
parent 96d28fd15d
commit bd59bad586
+1 -1
View File
@@ -2012,7 +2012,7 @@ hipError_t ihipGetMemcpyParam3DCommand(amd::Command*& command, const HIP_MEMCPY3
amd::Memory* mem = amd::MemObjMap::FindMemObj(pCopy->dstHost);
dstMemoryType = mem ? hipMemoryTypeDevice : hipMemoryTypeHost;
if (dstMemoryType == hipMemoryTypeDevice) {
const_cast<HIP_MEMCPY3D*>(pCopy)->dstDevice = const_cast<void*>(pCopy->dstDevice);
const_cast<HIP_MEMCPY3D*>(pCopy)->dstDevice = const_cast<void*>(pCopy->dstHost);
}
}