diff options
author | Nate Begeman <natebegeman@mac.com> | 2008-05-09 16:56:01 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2008-05-09 16:56:01 +0000 |
commit | fc5845234158807d30075131ef603ebacbc790be (patch) | |
tree | 360250986adb721d05bfcb07708271a1dc4dffd3 /lib/Sema/SemaDecl.cpp | |
parent | 8a99764f9b778a54e7440b1ee06a1e48f25d76d8 (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.cpp | 3 |
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; } |