[serialization] Make sure accessors are correctly associated with a subscript.

Trivial fix. Undetected for a long time because most accesses go from
subscript to accessors, rather than the other way around.

Swift SVN r6517
This commit is contained in:
Jordan Rose
2013-07-23 23:10:00 +00:00
parent be6c5b3707
commit b619a125a1

View File

@@ -1147,6 +1147,11 @@ Decl *ModuleFile::getDecl(DeclID DID, Optional<DeclContext *> ForcedContext,
auto overriddenDecl = cast_or_null<SubscriptDecl>(getDecl(overriddenID));
subscript->setOverriddenDecl(overriddenDecl);
if (getter)
getter->makeGetter(subscript);
if (setter)
setter->makeSetter(subscript);
break;
}