Skip to content

Commit c8286fb

Browse files
committed
Fix ompx_new_local
1 parent 7609f76 commit c8286fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

offload/DeviceRTL/src/Sanitizer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ extern "C" {
236236
[[clang::disable_sanitizer_instrumentation, gnu::flatten, gnu::always_inline,
237237
gnu::used, gnu::retain]] _AS_PTR(void, AllocationKind::LOCAL)
238238
ompx_new_local(_AS_PTR(void, AllocationKind::LOCAL) Start, uint64_t Length,
239-
int64_t AllocationId, uint32_t Slot, int64_t SourceId) {
239+
int64_t AllocationId, int64_t SourceId) {
240240
return AllocationTracker<AllocationKind::LOCAL>::create(
241-
Start, Length, AllocationId, Slot, SourceId);
241+
Start, Length, AllocationId, 0, SourceId);
242242
}
243243
[[clang::disable_sanitizer_instrumentation, gnu::flatten, gnu::always_inline,
244244
gnu::used, gnu::retain]] _AS_PTR(void, AllocationKind::GLOBAL)
@@ -261,7 +261,7 @@ ompx_new(void *Start, uint64_t Length, int64_t AllocationId, uint32_t Slot,
261261
int64_t SourceId) {
262262
if (REAL_PTR_IS_LOCAL(Start))
263263
return (void *)ompx_new_local((_AS_PTR(void, AllocationKind::LOCAL))Start,
264-
Length, AllocationId, Slot, SourceId);
264+
Length, AllocationId, SourceId);
265265
return (void *)ompx_new_global((_AS_PTR(void, AllocationKind::GLOBAL))Start,
266266
Length, AllocationId, Slot, SourceId);
267267
}

0 commit comments

Comments
 (0)