]> granicus.if.org Git - clang/commitdiff
Turn handling of parameter attributes back on, fixing the ObjC breakage
authorNate Begeman <natebegeman@mac.com>
Sun, 17 Feb 2008 21:20:31 +0000 (21:20 +0000)
committerNate Begeman <natebegeman@mac.com>
Sun, 17 Feb 2008 21:20:31 +0000 (21:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47246 91177308-0d34-0410-b5e6-96231b3b80d8

Sema/SemaDecl.cpp
Sema/SemaDeclObjC.cpp

index 797efea7c50b06bf07daa52583d98c6b44c2a082..9a19928ce7d171ee9e9522ce1e1b0b19930837b2 100644 (file)
@@ -987,8 +987,8 @@ Sema::ActOnParamDeclarator(struct DeclaratorChunk::ParamInfo &PI,
     II->setFETokenInfo(New);
     FnScope->AddDecl(New);
   }
-  // FIXME: Handle Attributes
-  //HandleDeclAttributes(New, PI.AttrList, 0);
+
+  HandleDeclAttributes(New, PI.AttrList, 0);
   return New;
 }
 
index 8d5457154c910abaf226e2ae518af98143940179..6b1d78bb776b5c60f5fee60e64db7f6ef1b81c21 100644 (file)
@@ -42,6 +42,7 @@ void Sema::ObjCActOnStartOfMethodDef(Scope *FnBodyScope, DeclTy *D) {
   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