Skip to content

Commit

Permalink
[flang][OpenMP] Fix FlangRuntime offload build after assign change
Browse files Browse the repository at this point in the history
    - Use actual function for memmove (address taken)
  • Loading branch information
dpalermo committed Nov 8, 2024
1 parent 2fae4cc commit 2903bb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flang/include/flang/Runtime/freestanding-tools.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
#define STD_MEMSET_UNSUPPORTED 1
#define STD_MEMCPY_USE_BUILTIN 1
#define STD_MEMCPY_UNSUPPORTED 1
#define STD_MEMMOVE_USE_BUILTIN 1
// #define STD_MEMMOVE_USE_BUILTIN 1 // address now taken in assign.h
#define STD_MEMMOVE_UNSUPPORTED 1
// #define STD_STRLEN_USE_BUILTIN 1 // still resolves to strlen
#define STD_STRLEN_UNSUPPORTED 1
Expand Down Expand Up @@ -162,7 +162,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) {
memcpy(dest, src, count);
Expand Down

0 comments on commit 2903bb4

Please sign in to comment.