A collection of minor type-o fixes. The first two aren't testable, but all tests pass with them. I stumbled across them while experimenting with a std::move that checks its argument for non-const. The third corrects a test that is currently failing.
llvm-svn: 190563
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: 872ac4b5f0610fac84aeb1e1925fcf4c0cebf991
diff --git a/include/map b/include/map
index c78231d..82a0a9c 100644
--- a/include/map
+++ b/include/map
@@ -753,7 +753,7 @@
: __cc(std::forward<_Args>(__args)...) {}
__value_type(const __value_type& __v)
- : __cc(std::move(__v.__cc)) {}
+ : __cc(__v.__cc) {}
__value_type(__value_type&& __v)
: __nc(std::move(__v.__nc)) {}
diff --git a/include/unordered_map b/include/unordered_map
index b53af14..fc30c2a 100644
--- a/include/unordered_map
+++ b/include/unordered_map
@@ -641,7 +641,7 @@
: __cc(std::forward<_Args>(__args)...) {}
__value_type(const __value_type& __v)
- : __cc(std::move(__v.__cc)) {}
+ : __cc(__v.__cc) {}
__value_type(__value_type&& __v)
: __nc(std::move(__v.__nc)) {}