[libc-commits] [libc] [libc] Independent strcat/strncat/stpcpy (PR #142643)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Thu Jun 5 10:58:14 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);
----------------
michaelrj-google wrote:

is there a reason to call that version instead of calling the builtin directly?

https://github.com/llvm/llvm-project/pull/142643


More information about the libc-commits mailing list