Skip to content

Commit 27e3c3a

Browse files
authored
[flang][OpenMP] Fix FlangRuntime offload build after assign change (#203)
- Use actual function for memmove (address taken)
1 parent 2fae4cc commit 27e3c3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
#define STD_MEMSET_UNSUPPORTED 1
8181
#define STD_MEMCPY_USE_BUILTIN 1
8282
#define STD_MEMCPY_UNSUPPORTED 1
83-
#define STD_MEMMOVE_USE_BUILTIN 1
83+
// #define STD_MEMMOVE_USE_BUILTIN 1 // address now taken in assign.h
8484
#define STD_MEMMOVE_UNSUPPORTED 1
8585
// #define STD_STRLEN_USE_BUILTIN 1 // still resolves to strlen
8686
#define STD_STRLEN_UNSUPPORTED 1
@@ -162,7 +162,7 @@ static inline RT_API_ATTRS void *memmove(
162162
const char *from{reinterpret_cast<const char *>(src)};
163163

164164
if (to == from) {
165-
return;
165+
return dest;
166166
}
167167
if (to + count <= from || from + count <= to) {
168168
memcpy(dest, src, count);

0 commit comments

Comments
 (0)