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 282e335 commit 4da3114Copy full SHA for 4da3114
lib/SILGen/SILGenLValue.cpp
@@ -3584,7 +3584,8 @@ void LValue::addNonMemberVarComponent(
3584
3585
std::optional<SILAccessEnforcement> enforcement;
3586
if (!Storage->isLet()) {
3587
- if (Options.IsNonAccessing) {
+ if (Options.IsNonAccessing || Options.ForGuaranteedReturn ||
3588
+ Options.ForGuaranteedAddressReturn) {
3589
enforcement = std::nullopt;
3590
} else if (Storage->getDeclContext()->isLocalContext()) {
3591
enforcement = SGF.getUnknownEnforcement(Storage);
0 commit comments