Skip to content

Commit 724b91b

Browse files
authored
[flang-rt] Fixed freestanding memmove. (#128604)
1 parent 305d273 commit 724b91b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/include/flang/Runtime/freestanding-tools.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ static inline RT_API_ATTRS void *memmove(
8888
const char *from{reinterpret_cast<const char *>(src)};
8989

9090
if (to == from) {
91-
return;
91+
return dest;
9292
}
9393
if (to + count <= from || from + count <= to) {
9494
std::memcpy(dest, src, count);

0 commit comments

Comments
 (0)