diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2019-02-07 18:53:58 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2019-02-07 18:53:58 +0000 |
commit | 0c922504853a5ef4c8ded9cedefd86ae1875fcdb (patch) | |
tree | 7c58db438f89b140ae6c181937ac6c3e75116a72 | |
parent | 11b7c528853da85df5ca3dc17a230adeb9ca753c (diff) | |
download | libcxx-0c922504853a5ef4c8ded9cedefd86ae1875fcdb.tar.gz |
Add UBSAN annotation to __hash_table::rehash; we don't do anything wrong, but UBSAN's checker flags it as suspicious. See PR38606. NFC
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@353448 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/__hash_table | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/__hash_table b/include/__hash_table index f6b789dc7..4409d6dc5 100644 --- a/include/__hash_table +++ b/include/__hash_table @@ -2371,6 +2371,7 @@ __hash_table<_Tp, _Hash, _Equal, _Alloc>::__node_handle_merge_multi( template <class _Tp, class _Hash, class _Equal, class _Alloc> void __hash_table<_Tp, _Hash, _Equal, _Alloc>::rehash(size_type __n) +_LIBCPP_DISABLE_UBSAN_UNSIGNED_INTEGER_CHECK { if (__n == 1) __n = 2; |