[PATCH] D24883: [libc++] Fix typos causing compilation errors when _LIBCPP_DEBUG_LEVEL >= 2
Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 26 14:48:23 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL282446: [libc++] Fix typos causing compilation errors when _LIBCPP_DEBUG_LEVEL >= 2 (authored by oleg).
Changed prior to commit:
https://reviews.llvm.org/D24883?vs=72346&id=72574#toc
Repository:
rL LLVM
https://reviews.llvm.org/D24883
Files:
libcxx/trunk/include/unordered_map
Index: libcxx/trunk/include/unordered_map
===================================================================
--- libcxx/trunk/include/unordered_map
+++ libcxx/trunk/include/unordered_map
@@ -1012,7 +1012,7 @@
iterator try_emplace(const_iterator __h, const key_type& __k, _Args&&... __args)
{
#if _LIBCPP_DEBUG_LEVEL >= 2
- _LIBCPP_ASSERT(__get_const_db()->__find_c_from_i(&__p) == this,
+ _LIBCPP_ASSERT(__get_const_db()->__find_c_from_i(&__h) == this,
"unordered_map::try_emplace(const_iterator, key, args...) called with an iterator not"
" referring to this unordered_map");
#endif
@@ -1024,7 +1024,7 @@
iterator try_emplace(const_iterator __h, key_type&& __k, _Args&&... __args)
{
#if _LIBCPP_DEBUG_LEVEL >= 2
- _LIBCPP_ASSERT(__get_const_db()->__find_c_from_i(&__p) == this,
+ _LIBCPP_ASSERT(__get_const_db()->__find_c_from_i(&__h) == this,
"unordered_map::try_emplace(const_iterator, key, args...) called with an iterator not"
" referring to this unordered_map");
#endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24883.72574.patch
Type: text/x-patch
Size: 1089 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160926/8696dfcd/attachment.bin>
More information about the llvm-commits
mailing list