Skip to content

Commit 271f6d5

Browse files
use builtin instead of inline memcpy
1 parent 565837a commit 271f6d5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libc/src/string/stpcpy.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#include "src/string/stpcpy.h"
1010
#include "src/__support/macros/config.h"
11-
#include "src/string/memory_utils/inline_memcpy.h"
1211
#include "src/string/string_utils.h"
1312

1413
#include "src/__support/common.h"
@@ -18,7 +17,7 @@ namespace LIBC_NAMESPACE_DECL {
1817
LLVM_LIBC_FUNCTION(char *, stpcpy,
1918
(char *__restrict dest, const char *__restrict src)) {
2019
size_t size = internal::string_length(src) + 1;
21-
inline_memcpy(dest, src, size);
20+
__builtin_memcpy(dest, src, size);
2221
char *result = dest + size;
2322

2423
if (result != nullptr)

0 commit comments

Comments
 (0)