aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2008-05-09 16:56:01 +0000
committerNate Begeman <natebegeman@mac.com>2008-05-09 16:56:01 +0000
commitfc5845234158807d30075131ef603ebacbc790be (patch)
tree360250986adb721d05bfcb07708271a1dc4dffd3 /lib/Sema/SemaDecl.cpp
parent8a99764f9b778a54e7440b1ee06a1e48f25d76d8 (diff)
Handle all attributes on a parameter
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50903 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r--lib/Sema/SemaDecl.cpp3
1 files changed, 2 insertions, 1 deletions
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;
}