diff --git a/compiler-rt/lib/tsan/rtl/tsan_fd.cc b/compiler-rt/lib/tsan/rtl/tsan_fd.cc index 86db119fc918..dc769e6e1587 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_fd.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_fd.cc @@ -44,7 +44,7 @@ static FdContext fdctx; static bool bogusfd(int fd) { // Apparently a bogus fd value. - return fd < 0 || fd >= (1 << 30); + return fd < 0 || fd >= kTableSize; } static FdSync *allocsync() {