Skip to content

Commit 6e26b41

Browse files
committed
[SILGen] Gardening: Moved comment.
1 parent cb7982d commit 6e26b41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/SILGen/SILGenFunction.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -805,8 +805,6 @@ void SILGenFunction::emitCaptures(SILLocation loc,
805805
// If this is a boxed variable, we can use it directly.
806806
if (Entry.box &&
807807
entryValue->getType().getASTType() == minimalLoweredType) {
808-
// If our captured value is a box with a moveonlywrapped type inside,
809-
// unwrap it.
810808
auto box = ManagedValue::forBorrowedObjectRValue(Entry.box);
811809
// We can guarantee our own box to the callee.
812810
if (canGuarantee) {
@@ -815,6 +813,8 @@ void SILGenFunction::emitCaptures(SILLocation loc,
815813
box = box.copy(*this, loc);
816814
}
817815

816+
// If our captured value is a box with a moveonlywrapped type inside,
817+
// unwrap it.
818818
if (box.getType().isBoxedMoveOnlyWrappedType(&F)) {
819819
CleanupCloner cloner(*this, box);
820820
box = cloner.clone(

0 commit comments

Comments
 (0)