[libc-commits] [libc] 38d7f85 - [libc] Add missing return statements to wrapper functions
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Wed Mar 15 20:16:37 PDT 2023
Author: Joseph Huber
Date: 2023-03-15T22:16:27-05:00
New Revision: 38d7f855b84b2a485e7a229db7900031b558c788
URL: https://github.com/llvm/llvm-project/commit/38d7f855b84b2a485e7a229db7900031b558c788
DIFF: https://github.com/llvm/llvm-project/commit/38d7f855b84b2a485e7a229db7900031b558c788.diff
LOG: [libc] Add missing return statements to wrapper functions
Summary:
I forgot to add return statements to these memory comparison functions.
This should hopefully resolve some BB errors.
Added:
Modified:
libc/test/IntegrationTest/test.cpp
Removed:
################################################################################
diff --git a/libc/test/IntegrationTest/test.cpp b/libc/test/IntegrationTest/test.cpp
index 0662b9a894e3..4d2a7f08cc06 100644
--- a/libc/test/IntegrationTest/test.cpp
+++ b/libc/test/IntegrationTest/test.cpp
@@ -28,20 +28,20 @@ void *memset(void *ptr, int value, size_t count);
extern "C" {
int bcmp(const void *lhs, const void *rhs, size_t count) {
- __llvm_libc::bcmp(lhs, rhs, count);
+ return __llvm_libc::bcmp(lhs, rhs, count);
}
void bzero(void *ptr, size_t count) { __llvm_libc::bzero(ptr, count); }
int memcmp(const void *lhs, const void *rhs, size_t count) {
- __llvm_libc::memcmp(lhs, rhs, count);
+ return __llvm_libc::memcmp(lhs, rhs, count);
}
void *memcpy(void *__restrict dst, const void *__restrict src, size_t count) {
- __llvm_libc::memcpy(dst, src, count);
+ return __llvm_libc::memcpy(dst, src, count);
}
void *memmove(void *dst, const void *src, size_t count) {
- __llvm_libc::memmove(dst, src, count);
+ return __llvm_libc::memmove(dst, src, count);
}
void *memset(void *ptr, int value, size_t count) {
- __llvm_libc::memset(ptr, value, count);
+ return __llvm_libc::memset(ptr, value, count);
}
} // extern "C"
More information about the libc-commits
mailing list