Parse: Remove some bogus error recovery code for 'lazy'

This commit is contained in:
Slava Pestov
2019-07-23 17:46:53 -04:00
parent 8047ddae82
commit 3e45b327de
3 changed files with 1 additions and 34 deletions

View File

@@ -1625,7 +1625,7 @@ synthesizeLazyGetterBody(AccessorDecl *Get, VarDecl *VD, VarDecl *Storage,
auto *InitValue = VD->getParentInitializer();
auto PBD = VD->getParentPatternBinding();
unsigned entryIndex = PBD->getPatternEntryIndexForVarDecl(VD);
assert(PBD->isInitializerSubsumed(entryIndex));
PBD->setInitializerSubsumed(entryIndex);
if (!PBD->isInitializerChecked(entryIndex))
TC.typeCheckPatternBinding(PBD, entryIndex);