Fix -Wredundant-move warning.
authorRichard Trieu <rtrieu@google.com>
Wed, 29 Jul 2015 23:47:19 +0000 (23:47 +0000)
committerRichard Trieu <rtrieu@google.com>
Wed, 29 Jul 2015 23:47:19 +0000 (23:47 +0000)
commit1993dc8b15d4d8835e773499240fad2da1152fb2
tree1109c4ae70643e68fc780103d7718f4f5bed06c4
parentb98aa4359af0c69365bfd471c95df34127e1e16b
Fix -Wredundant-move warning.

Without DR1579 implemented, the only case for -Wredundant-move is for a
parameter being returned with the same type as the function return type.  Also
include a check to verify that the move constructor will be used by matching
nodes in the AST dump.

llvm-svn: 243594
clang/lib/Sema/SemaInit.cpp
clang/test/SemaCXX/warn-pessmizing-move.cpp
clang/test/SemaCXX/warn-redundant-move.cpp