]> granicus.if.org Git - clang/commitdiff
Added a FIXME.
authorFariborz Jahanian <fjahanian@apple.com>
Wed, 8 Apr 2009 21:54:52 +0000 (21:54 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Wed, 8 Apr 2009 21:54:52 +0000 (21:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68646 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ASTContext.cpp

index d056ed4cb70b15959349e14b6c4ea9006f72a749..aaec98830e5d4a3a32d2e244ee6c883f207086b3 100644 (file)
@@ -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()) {