[cfe-commits] r61144 - /cfe/trunk/lib/AST/DeclObjC.cpp

Fariborz Jahanian fjahanian at apple.com
Wed Dec 17 10:25:33 PST 2008


Author: fjahanian
Date: Wed Dec 17 12:25:24 2008
New Revision: 61144

URL: http://llvm.org/viewvc/llvm-project?rev=61144&view=rev
Log:
Added comment to Steve's patch to clarify the case.


Modified:
    cfe/trunk/lib/AST/DeclObjC.cpp

Modified: cfe/trunk/lib/AST/DeclObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclObjC.cpp?rev=61144&r1=61143&r2=61144&view=diff

==============================================================================
--- cfe/trunk/lib/AST/DeclObjC.cpp (original)
+++ cfe/trunk/lib/AST/DeclObjC.cpp Wed Dec 17 12:25:24 2008
@@ -369,6 +369,9 @@
 ///
 FieldDecl *ObjCInterfaceDecl::lookupFieldDeclForIvar(ASTContext &Context, 
                                                      const ObjCIvarDecl *ivar) {
+  /* When a super class's ivar is referenced in the subclass method with no ivar 
+     of its own, record for the sub-class is not built yet. Build it lazily
+     here. */
   if (!RecordForDecl)
     addRecordToClass(Context);
   assert(RecordForDecl && "lookupFieldDeclForIvar no storage for class");





More information about the cfe-commits mailing list