diff options
author | Guillaume Chatelet <gchatelet@google.com> | 2023-04-11 12:21:11 +0000 |
---|---|---|
committer | Guillaume Chatelet <gchatelet@google.com> | 2023-04-11 12:21:23 +0000 |
commit | 25ef564bad76bb5f3de0ac0d741006b5692aea88 (patch) | |
tree | 3d988715143e5c0a51b001e3040d11e923e6241f /libc | |
parent | cbe4499d6b88b1bd6e4c30096cd33d4218fc0a84 (diff) | |
download | llvm-25ef564bad76bb5f3de0ac0d741006b5692aea88.zip llvm-25ef564bad76bb5f3de0ac0d741006b5692aea88.tar.gz llvm-25ef564bad76bb5f3de0ac0d741006b5692aea88.tar.bz2 |
[libc] remove unsupported GCC attribute
This is ok as we build the libraries with `-ffreestanding` which implies `-fno-builtin` on all functions.
Diffstat (limited to 'libc')
-rw-r--r-- | libc/test/src/string/memory_utils/memory_check_utils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/test/src/string/memory_utils/memory_check_utils.h b/libc/test/src/string/memory_utils/memory_check_utils.h index 930161a..46c362d 100644 --- a/libc/test/src/string/memory_utils/memory_check_utils.h +++ b/libc/test/src/string/memory_utils/memory_check_utils.h @@ -75,8 +75,8 @@ static inline void Randomize(cpp::span<char> buffer) { } // Copy one span to another. -__attribute__((no_builtin)) static inline void -ReferenceCopy(cpp::span<char> dst, const cpp::span<char> src) { +static inline void ReferenceCopy(cpp::span<char> dst, + const cpp::span<char> src) { assert(dst.size() == src.size()); for (size_t i = 0; i < dst.size(); ++i) dst[i] = src[i]; |