File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -247,8 +247,12 @@ class LifetimeDependenceInfo {
247
247
targetIndex(targetIndex) {
248
248
assert (this ->isImmortal () || inheritLifetimeParamIndices ||
249
249
scopeLifetimeParamIndices);
250
- assert (!inheritLifetimeParamIndices ||
251
- !inheritLifetimeParamIndices->isEmpty ());
250
+ // FIXME: This assert can trigger when Optional/Result support ~Escapable use (rdar://147765187)
251
+ // assert(!inheritLifetimeParamIndices ||
252
+ // !inheritLifetimeParamIndices->isEmpty());
253
+ if (inheritLifetimeParamIndices && inheritLifetimeParamIndices->isEmpty ()) {
254
+ inheritLifetimeParamIndices = nullptr ;
255
+ }
252
256
assert (!scopeLifetimeParamIndices || !scopeLifetimeParamIndices->isEmpty ());
253
257
assert ((!addressableParamIndices
254
258
|| !conditionallyAddressableParamIndices
You can’t perform that action at this time.
0 commit comments