[serialization] Handle computed properties with a getter /and/ setter.

Since accessor FuncDecl have a backreference to the VarDecl they are
attached to, we were getting re-entrant deserialization issues. Fix
this by just not serializing the backreference and relying on the
property being deserialized first.

Swift SVN r6134
This commit is contained in:
Jordan Rose
2013-07-10 23:25:39 +00:00
parent 9a67bc597e
commit b4fe4f098c
3 changed files with 3 additions and 22 deletions

View File

@@ -435,7 +435,7 @@ namespace decls_block {
BCFixed<1>, // class method?
BCFixed<1>, // assignment?
TypeIDField, // type (signature)
DeclIDField, // associated decl (for get/set or operators)
DeclIDField, // operator decl
DeclIDField // overridden function
// The record is trailed by its generic parameters, if any, followed by its
// argument and body parameter patterns.