diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-04-08 21:54:52 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-04-08 21:54:52 +0000 |
commit | 0c7ce5bcfae60d999d52b80f43bbe08436f3bbd1 (patch) | |
tree | 79cbfc39ef70564298f8844e04f6c2380f5b5567 /lib/AST/ASTContext.cpp | |
parent | a2cf28c3e13a1389ca4c9d66049bc7861f6fef7f (diff) |
Added a FIXME.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68646 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r-- | lib/AST/ASTContext.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index d056ed4cb7..aaec98830e 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -679,6 +679,8 @@ ASTContext::getASTObjCInterfaceLayout(const ObjCInterfaceDecl *D) { // Allocate and assign into ASTRecordLayouts here. The "Entry" reference can // be invalidated (dangle) if the ASTRecordLayouts hashtable is inserted into. ASTRecordLayout *NewEntry = NULL; + // FIXME. Add actual count of synthesized ivars, instead of count + // of properties which is the upper bound, but is safe. unsigned FieldCount = D->ivar_size() + std::distance(D->prop_begin(), D->prop_end()); if (ObjCInterfaceDecl *SD = D->getSuperClass()) { |