[PATCH] D11615: Fix redundant move warning
rtrieu at google.com
Wed Jul 29 16:41:38 PDT 2015
rtrieu created this revision.
rtrieu added a reviewer: rsmith.
rtrieu added subscribers: CornedBee, arthur.j.odwyer, cfe-commits.
Until DR1579 is implemented, redundant move should only be emitted when a parameter variable has the same type as the function return type and is returned. This removes the case where the returned type and the returned variable have different types. Also include a test to check for that the move constructor is used by checking the AST dump.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 7706 bytes
Desc: not available
More information about the cfe-commits