We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fae4cc commit 27e3c3aCopy full SHA for 27e3c3a
flang/include/flang/Runtime/freestanding-tools.h
@@ -80,7 +80,7 @@
80
#define STD_MEMSET_UNSUPPORTED 1
81
#define STD_MEMCPY_USE_BUILTIN 1
82
#define STD_MEMCPY_UNSUPPORTED 1
83
-#define STD_MEMMOVE_USE_BUILTIN 1
+// #define STD_MEMMOVE_USE_BUILTIN 1 // address now taken in assign.h
84
#define STD_MEMMOVE_UNSUPPORTED 1
85
// #define STD_STRLEN_USE_BUILTIN 1 // still resolves to strlen
86
#define STD_STRLEN_UNSUPPORTED 1
@@ -162,7 +162,7 @@ static inline RT_API_ATTRS void *memmove(
162
const char *from{reinterpret_cast<const char *>(src)};
163
164
if (to == from) {
165
- return;
+ return dest;
166
}
167
if (to + count <= from || from + count <= to) {
168
memcpy(dest, src, count);
0 commit comments