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 9a7d692..748b66f 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/lib/Sema/SemaDecl.cpp
@@ -1177,7 +1177,8 @@
   if (II)
     PushOnScopeChains(New, S);
 
-  HandleDeclAttributes(New, D.getAttributes(), 0);
+  HandleDeclAttributes(New, D.getDeclSpec().getAttributes(),
+                       D.getAttributes());
   return New;
 
 }