[flang-commits] [flang] 724b91b - [flang-rt] Fixed freestanding memmove. (#128604)
via flang-commits
flang-commits at lists.llvm.org
Mon Feb 24 16:56:32 PST 2025
Author: Slava Zakharin
Date: 2025-02-24T16:56:28-08:00
New Revision: 724b91b46783e68ff42fa0c9450449629cc47c65
URL: https://github.com/llvm/llvm-project/commit/724b91b46783e68ff42fa0c9450449629cc47c65
DIFF: https://github.com/llvm/llvm-project/commit/724b91b46783e68ff42fa0c9450449629cc47c65.diff
LOG: [flang-rt] Fixed freestanding memmove. (#128604)
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 2e3feec1c47a9..3a492c1f320d0 100644
--- a/flang/include/flang/Runtime/freestanding-tools.h
+++ b/flang/include/flang/Runtime/freestanding-tools.h
@@ -88,7 +88,7 @@ static inline RT_API_ATTRS void *memmove(
const char *from{reinterpret_cast<const char *>(src)};
if (to == from) {
- return;
+ return dest;
}
if (to + count <= from || from + count <= to) {
std::memcpy(dest, src, count);
More information about the flang-commits
mailing list