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.
1 parent 7ea2d5c commit 31b2d81Copy full SHA for 31b2d81
lib/SILGen/Scope.cpp
@@ -57,6 +57,8 @@ static void lifetimeExtendAddressOnlyRValueSubValues(
57
"addresses must be address only.");
58
auto boxTy = SILBoxType::get(v->getType().getASTType());
59
SILValue box = SGF.B.createAllocBox(loc, boxTy);
60
+ // TODO: Should these boxes that extend lifetimes for rvalue subobjects ever
61
+ // be lexical?
62
if (SGF.getASTContext().SILOpts.supportsLexicalLifetimes(SGF.getModule())) {
63
box = SGF.B.createBeginBorrow(loc, box, /*isLexical=*/true);
64
}
0 commit comments