Make rehash(0) work with ubsan's unsigned-integer-overflow.

Reviewers: mclow.lists, EricWF

Reviewed By: mclow.lists

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D40743

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@322031 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/__hash_table b/include/__hash_table
index 3f430af..2394152 100644
--- a/include/__hash_table
+++ b/include/__hash_table
@@ -2136,7 +2136,7 @@
 void
 __hash_table<_Tp, _Hash, _Equal, _Alloc>::rehash(size_type __n)
 {
-    if (__n == 1)
+    if (__n < 2)
         __n = 2;
     else if (__n & (__n - 1))
         __n = __next_prime(__n);