[libc-commits] [libc] 82c0f68 - [libc] Remove assert to fix rv32 buildbot
Mikhail R. Gadelha via libc-commits
libc-commits at lists.llvm.org
Fri Jan 3 17:03:49 PST 2025
Author: Mikhail R. Gadelha
Date: 2025-01-03T22:03:30-03:00
New Revision: 82c0f68c041229eb48a7d018f7aa81d576d456a9
URL: https://github.com/llvm/llvm-project/commit/82c0f68c041229eb48a7d018f7aa81d576d456a9
DIFF: https://github.com/llvm/llvm-project/commit/82c0f68c041229eb48a7d018f7aa81d576d456a9.diff
LOG: [libc] Remove assert to fix rv32 buildbot
Added:
Modified:
libc/src/unistd/linux/dup2.cpp
Removed:
################################################################################
diff --git a/libc/src/unistd/linux/dup2.cpp b/libc/src/unistd/linux/dup2.cpp
index c7c7c1a8ca786f..7ffc151a053c9c 100644
--- a/libc/src/unistd/linux/dup2.cpp
+++ b/libc/src/unistd/linux/dup2.cpp
@@ -32,7 +32,6 @@ LLVM_LIBC_FUNCTION(int, dup2, (int oldfd, int newfd)) {
int ret = LIBC_NAMESPACE::syscall_impl<int>(SYS_fcntl, oldfd, F_GETFD);
#elif defined(SYS_fcntl64)
// Same as fcntl but can handle large offsets
- static_assert(sizeof(off_t) == 8);
int ret = LIBC_NAMESPACE::syscall_impl<int>(SYS_fcntl64, oldfd, F_GETFD);
#else
#error "SYS_fcntl and SYS_fcntl64 syscalls not available."
More information about the libc-commits
mailing list