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 {
247247 targetIndex(targetIndex) {
248248 assert (this ->isImmortal () || inheritLifetimeParamIndices ||
249249 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+ }
252256 assert (!scopeLifetimeParamIndices || !scopeLifetimeParamIndices->isEmpty ());
253257 assert ((!addressableParamIndices
254258 || !conditionallyAddressableParamIndices
You can’t perform that action at this time.
0 commit comments