Skip to content

Commit 31b2d81

Browse files
committed
[SILGen] Added TODO.
1 parent 7ea2d5c commit 31b2d81

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/SILGen/Scope.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ static void lifetimeExtendAddressOnlyRValueSubValues(
5757
"addresses must be address only.");
5858
auto boxTy = SILBoxType::get(v->getType().getASTType());
5959
SILValue box = SGF.B.createAllocBox(loc, boxTy);
60+
// TODO: Should these boxes that extend lifetimes for rvalue subobjects ever
61+
// be lexical?
6062
if (SGF.getASTContext().SILOpts.supportsLexicalLifetimes(SGF.getModule())) {
6163
box = SGF.B.createBeginBorrow(loc, box, /*isLexical=*/true);
6264
}

0 commit comments

Comments
 (0)