[cfe-commits] r69945 - /cfe/trunk/lib/Sema/SemaDeclObjC.cpp

Douglas Gregor dgregor at apple.com
Thu Apr 23 19:15:36 PDT 2009


Author: dgregor
Date: Thu Apr 23 21:15:36 2009
New Revision: 69945

URL: http://llvm.org/viewvc/llvm-project?rev=69945&view=rev
Log:
Fix Objective-C crashes

Modified:
    cfe/trunk/lib/Sema/SemaDeclObjC.cpp

Modified: cfe/trunk/lib/Sema/SemaDeclObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclObjC.cpp?rev=69945&r1=69944&r2=69945&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclObjC.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclObjC.cpp Thu Apr 23 21:15:36 2009
@@ -659,9 +659,6 @@
     IDecl->setLocEnd(ClassLoc);
 
     PushOnScopeChains(IDecl, TUScope);
-    CurContext->addDecl(Context, IDecl);
-    // Remember that this needs to be removed when the scope is popped.
-    TUScope->AddDecl(DeclPtrTy::make(IDecl));
   } else {
     // Mark the interface as being completed, even if it was just as
     //   @class ....;





More information about the cfe-commits mailing list