[libc-commits] [libc] [libc] Independent strcat/strncat/stpcpy (PR #142643)
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Thu Jun 5 11:00:28 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:
Mostly was wondering if there would be an easier way to select which flavor of memcpy we wanted. Might've been better as a template function than this macro dispatch but that's a big change.
https://github.com/llvm/llvm-project/pull/142643
More information about the libc-commits
mailing list