Track whether a PatternBindingDecl theoretically

declares storage or not.

Swift SVN r12942
This commit is contained in:
John McCall
2014-01-24 22:46:22 +00:00
parent 82e192df6e
commit f416dd81a8
10 changed files with 59 additions and 12 deletions

View File

@@ -1044,7 +1044,8 @@ void Serializer::writeDecl(const Decl *D) {
unsigned abbrCode = DeclTypeAbbrCodes[PatternBindingLayout::Code];
PatternBindingLayout::emitRecord(Out, ScratchRecord, abbrCode,
addDeclRef(DC), binding->isImplicit(),
binding->isStatic());
binding->isStatic(),
binding->hasStorage());
writePattern(binding->getPattern());
// Ignore initializer; external clients don't need to know about it.