Skip to content

Commit 4174519

Browse files
authored
Merge pull request #11754 from gottesmm/pr-ebfb5c11a9a956e56c23536058662240dc0a4bab
[gardening] Copy edit a comment.
2 parents 97841d4 + 9bf1d0b commit 4174519

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/SILGen/SILGenExpr.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,9 +1254,11 @@ RValue SILGenFunction::emitRValueForPropertyLoad(
12541254
(!C.isImmediatePlusZeroOk() &&
12551255
!(C.isGuaranteedPlusZeroOk() && isGuaranteedValid))) {
12561256
// If we have an abstraction change or if we have to produce a result at
1257-
// +1, then emit a RetainValue. If we know that our base will stay alive,
1258-
// we can emit at +0 for a guaranteed consumer. Otherwise, since we do not
1259-
// have enough information, we can only emit at +0 for immediate clients.
1257+
// +1, then copy the value. If we know that our base will stay alive for
1258+
// the entire usage of this value, we can borrow the value at +0 for a
1259+
// guaranteed consumer. Otherwise, since we do not have enough information
1260+
// to know if the base's lifetime last's as long as our use of the access,
1261+
// we can only emit at +0 for immediate clients.
12601262
result = result.copyUnmanaged(*this, loc);
12611263
}
12621264
} else {

0 commit comments

Comments
 (0)