Skip to content

Commit 858982e

Browse files
kkwliagozillon
authored andcommitted
[OpenMP] Fix build breakage (NFC) (llvm#80313)
Assign `nullptr` to the pointer instead.
1 parent 755fad8 commit 858982e

File tree

1 file changed

+1
-1
lines changed
  • openmp/libomptarget/plugins-nextgen/cuda/src

1 file changed

+1
-1
lines changed

openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ cuMemGetAllocationGranularity(size_t *granularity,
6969
#if (defined(CUDA_VERSION) && (CUDA_VERSION < 11020))
7070
// Forward declarations of asynchronous memory management functions. This is
7171
// necessary for older versions of CUDA.
72-
CUresult cuMemAllocAsync(CUdeviceptr *ptr, size_t, CUstream) { *ptr = nullptr; }
72+
CUresult cuMemAllocAsync(CUdeviceptr *ptr, size_t, CUstream) { *ptr = 0; }
7373

7474
CUresult cuMemFreeAsync(CUdeviceptr dptr, CUstream hStream) {}
7575
#endif

0 commit comments

Comments
 (0)