[cfe-commits] r47246 - in /cfe/trunk/Sema: SemaDecl.cpp SemaDeclObjC.cpp

Nate Begeman natebegeman at mac.com
Sun Feb 17 13:20:31 PST 2008


Author: sampo
Date: Sun Feb 17 15:20:31 2008
New Revision: 47246

URL: http://llvm.org/viewvc/llvm-project?rev=47246&view=rev
Log:
Turn handling of parameter attributes back on, fixing the ObjC breakage

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

Modified: cfe/trunk/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Sema/SemaDecl.cpp?rev=47246&r1=47245&r2=47246&view=diff

==============================================================================
--- cfe/trunk/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/Sema/SemaDecl.cpp Sun Feb 17 15:20:31 2008
@@ -987,8 +987,8 @@
     II->setFETokenInfo(New);
     FnScope->AddDecl(New);
   }
-  // FIXME: Handle Attributes
-  //HandleDeclAttributes(New, PI.AttrList, 0);
+
+  HandleDeclAttributes(New, PI.AttrList, 0);
   return New;
 }
 

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

==============================================================================
--- cfe/trunk/Sema/SemaDeclObjC.cpp (original)
+++ cfe/trunk/Sema/SemaDeclObjC.cpp Sun Feb 17 15:20:31 2008
@@ -42,6 +42,7 @@
   PI.Ident = &Context.Idents.get("self");
   PI.IdentLoc = SourceLocation(); // synthesized vars have a null location.
   PI.InvalidType = false;
+  PI.AttrList = 0;
   if (MDecl->isInstance()) {
     ObjCInterfaceDecl *OID = MDecl->getClassInterface();
     // There may be no interface context due to error in declaration of the 





More information about the cfe-commits mailing list