Skip to content

Commit 6309791

Browse files
committed
Fix NVPTX error
1 parent 40c4d21 commit 6309791

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libc/src/stdlib/gpu/realloc.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ LLVM_LIBC_FUNCTION(void *, realloc, (void *ptr, size_t size)) {
2121
#ifndef LIBC_TARGET_ARCH_IS_NVPTX
2222
return gpu::reallocate(ptr, size);
2323
#else
24+
(void)ptr;
25+
(void)size;
2426
return nullptr;
2527
#endif
2628
}

0 commit comments

Comments
 (0)