File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
lib/SILOptimizer/Mandatory Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,8 @@ bool SILGenCleanup::completeOSSALifetimes(SILFunction *function) {
118
118
for (SILInstruction &inst : reverse (*block)) {
119
119
for (auto result : inst.getResults ()) {
120
120
if (completion.completeOSSALifetime (
121
- result, OSSALifetimeCompletion::Boundary::Availability) ==
121
+ result,
122
+ OSSALifetimeCompletion::Boundary::AvailabilityWithLeaks) ==
122
123
LifetimeCompletion::WasCompleted) {
123
124
changed = true ;
124
125
}
@@ -127,7 +128,7 @@ bool SILGenCleanup::completeOSSALifetimes(SILFunction *function) {
127
128
for (SILArgument *arg : block->getArguments ()) {
128
129
assert (!arg->isReborrow () && " reborrows not legal at this SIL stage" );
129
130
if (completion.completeOSSALifetime (
130
- arg, OSSALifetimeCompletion::Boundary::Availability ) ==
131
+ arg, OSSALifetimeCompletion::Boundary::AvailabilityWithLeaks ) ==
131
132
LifetimeCompletion::WasCompleted) {
132
133
changed = true ;
133
134
}
You can’t perform that action at this time.
0 commit comments