From 6a9cd37984028434ca25be4a3322f6bb80d2b82f Mon Sep 17 00:00:00 2001 From: Valentin Clement Date: Tue, 20 May 2025 10:36:48 -0700 Subject: [PATCH] [flang][cuda] Use nullptr for comparison --- flang-rt/lib/cuda/allocator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flang-rt/lib/cuda/allocator.cpp b/flang-rt/lib/cuda/allocator.cpp index f4289c55bd8de..05d97a5db0451 100644 --- a/flang-rt/lib/cuda/allocator.cpp +++ b/flang-rt/lib/cuda/allocator.cpp @@ -150,7 +150,7 @@ void *CUFAllocDevice(std::size_t sizeInBytes, std::int64_t *asyncObject) { CUDA_REPORT_IF_ERROR( cudaMallocManaged((void **)&p, sizeInBytes, cudaMemAttachGlobal)); } else { - if (asyncObject == kNoAsyncObject) { + if (asyncObject == nullptr) { CUDA_REPORT_IF_ERROR(cudaMalloc(&p, sizeInBytes)); } else { CUDA_REPORT_IF_ERROR(