[cfe-commits] r68646 - /cfe/trunk/lib/AST/ASTContext.cpp
Fariborz Jahanian
fjahanian at apple.com
Wed Apr 8 14:54:52 PDT 2009
Author: fjahanian
Date: Wed Apr 8 16:54:52 2009
New Revision: 68646
URL: http://llvm.org/viewvc/llvm-project?rev=68646&view=rev
Log:
Added a FIXME.
Modified:
cfe/trunk/lib/AST/ASTContext.cpp
Modified: cfe/trunk/lib/AST/ASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTContext.cpp?rev=68646&r1=68645&r2=68646&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ASTContext.cpp (original)
+++ cfe/trunk/lib/AST/ASTContext.cpp Wed Apr 8 16:54:52 2009
@@ -679,6 +679,8 @@
// 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()) {
More information about the cfe-commits
mailing list