Skip to content

Commit c3103eb

Browse files
authored
[OpenMP] Fix small merge artifact in OpenMP device runtime (#568)
We're currently using a variable/parameter that no longer exists in the scope of the function, so we get a compilation error. Fix to align with the upstream PR and use Ptr.
1 parent 02d967a commit c3103eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openmp/device/src/Allocator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ void allocator::free(void *Ptr) {
9898
#elif defined(__AMDGPU__) && !defined(OMPTARGET_HAS_LIBC)
9999
__ockl_dm_dealloc(reinterpret_cast<uint64_t>(Ptr));
100100
#else
101-
::free(Size);
101+
::free(Ptr);
102102
#endif
103103
}
104104

0 commit comments

Comments
 (0)