File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -220,13 +220,16 @@ class LifetimeDependenceInfo {
220
220
targetIndex(targetIndex) {
221
221
assert (this ->isImmortal () || inheritLifetimeParamIndices ||
222
222
scopeLifetimeParamIndices);
223
- // FIXME: This assert can trigger when Optional/Result support ~Escapable use (rdar://147765187)
223
+ // FIXME: These asserts can trigger when Optional/Result support ~Escapable use (rdar://147765187)
224
224
// assert(!inheritLifetimeParamIndices ||
225
225
// !inheritLifetimeParamIndices->isEmpty());
226
+ // assert(!scopeLifetimeParamIndices || !scopeLifetimeParamIndices->isEmpty());
226
227
if (inheritLifetimeParamIndices && inheritLifetimeParamIndices->isEmpty ()) {
227
228
inheritLifetimeParamIndices = nullptr ;
228
229
}
229
- assert (!scopeLifetimeParamIndices || !scopeLifetimeParamIndices->isEmpty ());
230
+ if (scopeLifetimeParamIndices && scopeLifetimeParamIndices->isEmpty ()) {
231
+ scopeLifetimeParamIndices = nullptr ;
232
+ }
230
233
assert ((!addressableParamIndices
231
234
|| !conditionallyAddressableParamIndices
232
235
|| conditionallyAddressableParamIndices->isDisjointWith (
You can’t perform that action at this time.
0 commit comments