Skip to content

Commit 644fb07

Browse files
committed
Fix Build error.
Switch from 'size_t' to '__SIZE_TYPE__'
1 parent fad918f commit 644fb07

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/Headers/__clang_hip_libdevice_declares.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,10 @@ __device__ __attribute__((const)) __2f16 __ocml_sqrt_2f16(__2f16);
338338
__device__ __attribute__((const)) __2f16 __ocml_trunc_2f16(__2f16);
339339
__device__ __attribute__((const)) __2f16 __ocml_pown_2f16(__2f16, __2i16);
340340

341-
__device__ void __asan_poison_memory_region(const void *addr, size_t size);
342-
__device__ void __asan_unpoison_memory_region(const void *addr, size_t size);
341+
__device__ void __asan_poison_memory_region(const void *addr, __SIZE_TYPE__ size);
342+
__device__ void __asan_unpoison_memory_region(const void *addr, __SIZE_TYPE__ size);
343343
__device__ int __asan_address_is_poisoned(const void *addr);
344-
__device__ void *__asan_region_is_poisoned(void *beg, size_t size);
344+
__device__ void *__asan_region_is_poisoned(void *beg, __SIZE_TYPE__ size);
345345

346346
#if __has_feature(address_sanitizer)
347347
#define ASAN_POISON_MEMORY_REGION(addr, size) \

0 commit comments

Comments
 (0)