[flang-commits] [flang] [flang][cuda] Fix device compilation after #172913 (PR #174031)
Valentin Clement バレンタイン クレメン via flang-commits
flang-commits at lists.llvm.org
Tue Dec 30 14:41:20 PST 2025
https://github.com/clementval created https://github.com/llvm/llvm-project/pull/174031
None
>From dafeb5a4d08da401868d57ad1361c894e0b5ddfb Mon Sep 17 00:00:00 2001
From: Valentin Clement <clementval at gmail.com>
Date: Tue, 30 Dec 2025 14:40:51 -0800
Subject: [PATCH] [flang][cuda] Fix device compilation after #172913
---
flang/include/flang/Runtime/freestanding-tools.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/flang/include/flang/Runtime/freestanding-tools.h b/flang/include/flang/Runtime/freestanding-tools.h
index 7ab06145c5d52..42129328d0b02 100644
--- a/flang/include/flang/Runtime/freestanding-tools.h
+++ b/flang/include/flang/Runtime/freestanding-tools.h
@@ -183,7 +183,8 @@ using MemcpyFct = void *(*)(void *, const void *, std::size_t);
}
[[maybe_unused]] static RT_API_ATTRS void *MemcpyWrapper(
void *dest, const void *src, std::size_t count) {
- return Fortran::runtime::memcpy(dest, src, count);
+ Fortran::runtime::memcpy(dest, src, count);
+ return dest;
}
#endif
More information about the flang-commits
mailing list