Fix a bunch of pessimizing moves which prevent copy elision.

This commit is contained in:
Davide Italiano
2015-12-11 19:09:13 +00:00
parent 689db17800
commit 2e78fdf58f
6 changed files with 6 additions and 6 deletions

View File

@@ -96,7 +96,7 @@ public:
// An unowned parameter is passed at +0, like guaranteed, but it isn't
// kept alive by the caller, so we need to retain and manage it
// regardless.
return std::move(gen.emitManagedRetain(loc, arg));
return gen.emitManagedRetain(loc, arg);
case ParameterConvention::Indirect_Inout:
case ParameterConvention::Indirect_InoutAliasable: