From: Nate Begeman Date: Fri, 9 May 2008 16:56:01 +0000 (+0000) Subject: Handle all attributes on a parameter X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fc5845234158807d30075131ef603ebacbc790be;p=clang Handle all attributes on a parameter git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50903 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 9a7d692c97..748b66fb3e 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -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; }