From 954966c1afa28bb1c00b29b36a87954329c12c18 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Thu, 7 Feb 2019 18:53:58 +0000 Subject: [PATCH] Add UBSAN annotation to __hash_table::rehash; we don't do anything wrong, but UBSAN's checker flags it as suspicious. See PR38606. NFC llvm-svn: 353448 --- libcxx/include/__hash_table | 1 + 1 file changed, 1 insertion(+) diff --git a/libcxx/include/__hash_table b/libcxx/include/__hash_table index f6b789dc75a2..4409d6dc564b 100644 --- a/libcxx/include/__hash_table +++ b/libcxx/include/__hash_table @@ -2371,6 +2371,7 @@ __hash_table<_Tp, _Hash, _Equal, _Alloc>::__node_handle_merge_multi( template void __hash_table<_Tp, _Hash, _Equal, _Alloc>::rehash(size_type __n) +_LIBCPP_DISABLE_UBSAN_UNSIGNED_INTEGER_CHECK { if (__n == 1) __n = 2;