Skip to content

Commit 0c62571

Browse files
committed
[libc++] Remove static_assert from hash.cpp that fires unconditionall
1 parent 8dc63ca commit 0c62571

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

libcxx/src/hash.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ inline void __check_for_overflow(size_t N) {
5656
if (N > 0xFFFFFFFB)
5757
std::__throw_overflow_error("__next_prime overflow");
5858
} else {
59-
static_assert(sizeof(size_t) == 8);
6059
if (N > 0xFFFFFFFFFFFFFFC5ull)
6160
std::__throw_overflow_error("__next_prime overflow");
6261
}

0 commit comments

Comments
 (0)