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