mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fix a bunch of pessimizing moves which prevent copy elision.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user