[flang-commits] [flang] 18155c6 - [flang][cuda] Fix device compilation after #172913 (#174031)
via flang-commits
flang-commits at lists.llvm.org
Tue Dec 30 14:55:56 PST 2025
Author: Valentin Clement (バレンタイン クレメン)
Date: 2025-12-30T22:55:51Z
New Revision: 18155c62a15971c6ecb34b0e4d281e0ded96ff69
URL: https://github.com/llvm/llvm-project/commit/18155c62a15971c6ecb34b0e4d281e0ded96ff69
DIFF: https://github.com/llvm/llvm-project/commit/18155c62a15971c6ecb34b0e4d281e0ded96ff69.diff
LOG: [flang][cuda] Fix device compilation after #172913 (#174031)
Added:
Modified:
flang/include/flang/Runtime/freestanding-tools.h
Removed:
################################################################################
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