summaryrefslogtreecommitdiffstats
path: root/libcxx/include/unordered_map
diff options
context:
space:
mode:
authorOleg Ranevskyy <oranevskyy@accesssoftek.com>2016-09-26 21:39:38 +0000
committerOleg Ranevskyy <oranevskyy@accesssoftek.com>2016-09-26 21:39:38 +0000
commiteef9b35c6dd685827ca587bac882e016d303ac9b (patch)
tree9bfa5fefc6adc31096fd3be96efb78a5ee7a06b7 /libcxx/include/unordered_map
parent543a26e958e0667143d2866f6cda5d3947c0c7c3 (diff)
downloadbcm5719-llvm-eef9b35c6dd685827ca587bac882e016d303ac9b.tar.gz
bcm5719-llvm-eef9b35c6dd685827ca587bac882e016d303ac9b.zip
[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
Diffstat (limited to 'libcxx/include/unordered_map')
-rw-r--r--libcxx/include/unordered_map4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/include/unordered_map b/libcxx/include/unordered_map
index 8d7edaf509c..55469894955 100644
--- a/libcxx/include/unordered_map
+++ b/libcxx/include/unordered_map
@@ -1012,7 +1012,7 @@ public:
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 @@ public:
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
OpenPOWER on IntegriCloud