Skip to content

Commit

Permalink
[libc] Add missing return statements to wrapper functions
Browse files Browse the repository at this point in the history
Summary:
I forgot to add return statements to these memory comparison functions.
This should hopefully resolve some BB errors.
  • Loading branch information
jhuber6 committed Mar 16, 2023
1 parent fc97303 commit 38d7f85
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libc/test/IntegrationTest/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 38d7f85

Please sign in to comment.