We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 69e9dd3 + 8b483a6 commit 8c43428Copy full SHA for 8c43428
lib/SILGen/ResultPlan.cpp
@@ -541,11 +541,9 @@ class PackTransformResultPlan final : public ResultPlan {
541
if (!eltTL.isAddressOnly()) {
542
auto load = eltTL.emitLoad(SGF.B, loc, eltAddr,
543
LoadOwnershipQualifier::Take);
544
- eltMV = SGF.emitManagedRValueWithCleanup(load, eltTL);
545
- } else {
546
- eltMV = SGF.emitManagedBufferWithCleanup(eltAddr, eltTL);
+ return SGF.emitManagedRValueWithCleanup(load, eltTL);
547
}
548
- return eltMV;
+ return SGF.emitManagedBufferWithCleanup(eltAddr, eltTL);
549
}();
550
551
// Finish in the normal way for scalar results.
0 commit comments