]> granicus.if.org Git - clang/commit
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)
commit0e4cb2fe80014791ff741075699cf224363ac00c
tree65612bc2328bd931c4c14cadc747a107f6cd7fed
parent98624f60f673d60493908cf2055d961be6675670
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.

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