[Serialization] Preserve a deinitializer's interface type.

We haven't actually needed this for anything, but we should probably follow
the invariants of the AST.

Swift SVN r22199
This commit is contained in:
Jordan Rose
2014-09-23 02:06:25 +00:00
parent 7fe346a091
commit 988b8c2033
3 changed files with 8 additions and 5 deletions

View File

@@ -1981,7 +1981,8 @@ void Serializer::writeDecl(const Decl *D) {
addDeclRef(DC),
dtor->isImplicit(),
dtor->isObjC(),
addTypeRef(dtor->getType()));
addTypeRef(dtor->getType()),
addTypeRef(dtor->getInterfaceType()));
assert(dtor->getBodyParamPatterns().size() == 1);
for (auto pattern : dtor->getBodyParamPatterns())
writePattern(pattern);