Skip to content

Commit 0c32767

Browse files
committed
Copy remaining bytes for TgtPtrAddr from from host descriptor, as the comment said.
1 parent 26c71d2 commit 0c32767

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

offload/include/OpenMP/Mapping.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ struct ShadowPtrInfoTy {
8484
reinterpret_cast<char *>(HstPtrAddr) + VoidPtrSize,
8585
PtrSize - VoidPtrSize);
8686
std::memcpy(TgtPtrContent.data() + VoidPtrSize,
87-
reinterpret_cast<char *>(TgtPtrAddr) + VoidPtrSize,
87+
reinterpret_cast<char *>(HstPtrAddr) + VoidPtrSize,
8888
PtrSize - VoidPtrSize);
8989
}
9090

0 commit comments

Comments
 (0)