]> granicus.if.org Git - clang/commitdiff
Handle all attributes on a parameter
authorNate Begeman <natebegeman@mac.com>
Fri, 9 May 2008 16:56:01 +0000 (16:56 +0000)
committerNate Begeman <natebegeman@mac.com>
Fri, 9 May 2008 16:56:01 +0000 (16:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50903 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDecl.cpp

index 9a7d692c9754cc6b390e6f791658f897308b24b5..748b66fb3e1bdf4ded8ad8e8f7caa730b5962003 100644 (file)
@@ -1177,7 +1177,8 @@ Sema::ActOnParamDeclarator(Scope *S, Declarator &D) {
   if (II)
     PushOnScopeChains(New, S);
 
-  HandleDeclAttributes(New, D.getAttributes(), 0);
+  HandleDeclAttributes(New, D.getDeclSpec().getAttributes(),
+                       D.getAttributes());
   return New;
 
 }