]> granicus.if.org Git - clang/commit
Do not give a -Wredundant-move warning when removing the move will result in an
authorRichard Trieu <rtrieu@google.com>
Tue, 28 Jul 2015 19:06:16 +0000 (19:06 +0000)
committerRichard Trieu <rtrieu@google.com>
Tue, 28 Jul 2015 19:06:16 +0000 (19:06 +0000)
commit6ea88b600f597e6dbbaa1d6d5db9ab5e122cac5a
tree4e91fd5428b83dedd41b8832dbc06efb0b5ab82c
parenta0b2aadcfd90aca11469225af9b735acca62e36d
Do not give a -Wredundant-move warning when removing the move will result in an
error.

If the object being moved has a move constructor and a deleted copy constructor,
std::move is required, otherwise Clang will give a deleted constructor error.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@243463 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaInit.cpp
test/SemaCXX/warn-redundant-move.cpp