From 49ac673ede971dc54f5eb66e58a6b7760b980eab Mon Sep 17 00:00:00 2001 From: agozillon Date: Tue, 11 Nov 2025 21:44:55 -0600 Subject: [PATCH] [OpenMP] Fix small merge artifact in OpenMP device runtime 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. --- openmp/device/src/Allocator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmp/device/src/Allocator.cpp b/openmp/device/src/Allocator.cpp index b6e8f06bc164f..24f989197a707 100644 --- a/openmp/device/src/Allocator.cpp +++ b/openmp/device/src/Allocator.cpp @@ -98,7 +98,7 @@ void allocator::free(void *Ptr) { #elif defined(__AMDGPU__) && !defined(OMPTARGET_HAS_LIBC) __ockl_dm_dealloc(reinterpret_cast(Ptr)); #else - ::free(Size); + ::free(Ptr); #endif }