[llvm] [flang][cuda] Fix type of kNoAsyncObject (PR #138029)

Valentin Clement バレンタイン クレメン via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 30 14:30:08 PDT 2025


https://github.com/clementval created https://github.com/llvm/llvm-project/pull/138029

None

>From d57ae3fabf7947f3f6aed9e5be8dd81dc1e2ac84 Mon Sep 17 00:00:00 2001
From: Valentin Clement <clementval at gmail.com>
Date: Wed, 30 Apr 2025 14:29:42 -0700
Subject: [PATCH] [flang][cuda] Fix type of kNoAsyncObject

---
 flang-rt/include/flang-rt/runtime/descriptor.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/flang-rt/include/flang-rt/runtime/descriptor.h b/flang-rt/include/flang-rt/runtime/descriptor.h
index 19cfeeb1e9dd1..c98e6b14850cb 100644
--- a/flang-rt/include/flang-rt/runtime/descriptor.h
+++ b/flang-rt/include/flang-rt/runtime/descriptor.h
@@ -30,7 +30,7 @@
 #include <cstring>
 
 /// Value used for asyncObject when no specific stream is specified.
-static constexpr void *kNoAsyncObject = nullptr;
+static constexpr std::int64_t *kNoAsyncObject = nullptr;
 
 namespace Fortran::runtime {
 



More information about the llvm-commits mailing list