summaryrefslogtreecommitdiffstats
path: root/libcxx/include/ext
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2013-08-22 18:29:50 +0000
committerHoward Hinnant <hhinnant@apple.com>2013-08-22 18:29:50 +0000
commit179b1f8cf2f4b9dc8290c6753bf7626f48a81321 (patch)
treeefeef4a001b8c31ad778efd0bbeb8447a1b692df /libcxx/include/ext
parent883a2b2427db41cd8e89f360eaf869e61c4e8876 (diff)
downloadbcm5719-llvm-179b1f8cf2f4b9dc8290c6753bf7626f48a81321.tar.gz
bcm5719-llvm-179b1f8cf2f4b9dc8290c6753bf7626f48a81321.zip
Zhihao Yuan noted that there were a few unneeded statements. Eliminated the unnecessary ones, and commented the ones that are there for non-obvious reasons such as to help things limp along in C++03 language mode.
llvm-svn: 189039
Diffstat (limited to 'libcxx/include/ext')
-rw-r--r--libcxx/include/ext/hash_map2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/ext/hash_map b/libcxx/include/ext/hash_map
index 3e474b02e7d..b57ea533bc3 100644
--- a/libcxx/include/ext/hash_map
+++ b/libcxx/include/ext/hash_map
@@ -684,7 +684,7 @@ hash_map<_Key, _Tp, _Hash, _Pred, _Alloc>::__construct_node(const key_type& __k)
__h.get_deleter().__first_constructed = true;
__node_traits::construct(__na, _VSTD::addressof(__h->__value_.second));
__h.get_deleter().__second_constructed = true;
- return _VSTD::move(__h);
+ return _VSTD::move(__h); // explicitly moved for C++03
}
template <class _Key, class _Tp, class _Hash, class _Pred, class _Alloc>
OpenPOWER on IntegriCloud