Skip to content

Commit eef9b35

Browse files
committedSep 26, 2016
[libc++] Fix typos causing compilation errors when _LIBCPP_DEBUG_LEVEL >= 2
Summary: This patch fixes a couple of typos that cause compilation errors when application includes <unordered_map> and enables the libc++'s debugging capabilities. Reviewers: EricWF Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D24883 llvm-svn: 282446
1 parent 543a26e commit eef9b35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

Diff for: ‎libcxx/include/unordered_map

+2-2
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ public:
10121012
iterator try_emplace(const_iterator __h, const key_type& __k, _Args&&... __args)
10131013
{
10141014
#if _LIBCPP_DEBUG_LEVEL >= 2
1015-
_LIBCPP_ASSERT(__get_const_db()->__find_c_from_i(&__p) == this,
1015+
_LIBCPP_ASSERT(__get_const_db()->__find_c_from_i(&__h) == this,
10161016
"unordered_map::try_emplace(const_iterator, key, args...) called with an iterator not"
10171017
" referring to this unordered_map");
10181018
#endif
@@ -1024,7 +1024,7 @@ public:
10241024
iterator try_emplace(const_iterator __h, key_type&& __k, _Args&&... __args)
10251025
{
10261026
#if _LIBCPP_DEBUG_LEVEL >= 2
1027-
_LIBCPP_ASSERT(__get_const_db()->__find_c_from_i(&__p) == this,
1027+
_LIBCPP_ASSERT(__get_const_db()->__find_c_from_i(&__h) == this,
10281028
"unordered_map::try_emplace(const_iterator, key, args...) called with an iterator not"
10291029
" referring to this unordered_map");
10301030
#endif

0 commit comments

Comments
 (0)
Please sign in to comment.