[libc-commits] [libc] [libc] Independent strcat/strncat/stpcpy (PR #142643)
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Thu Jun 5 10:41:42 PDT 2025
================
@@ -18,7 +17,7 @@ namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(char *, stpcpy,
(char *__restrict dest, const char *__restrict src)) {
size_t size = internal::string_length(src) + 1;
- inline_memcpy(dest, src, size);
+ __builtin_memcpy(dest, src, size);
----------------
jhuber6 wrote:
We have a definition for this in `libc/src/string/memory_utils/generic/builtin.h`.
https://github.com/llvm/llvm-project/pull/142643
More information about the libc-commits
mailing list