summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2008-02-17 21:02:04 +0000
committerNate Begeman <natebegeman@mac.com>2008-02-17 21:02:04 +0000
commitf0e4a52211969bdb3a1a876a3c24ceeafd5a3d27 (patch)
treec3279ebd8333b31b8fde5ef96510a1db0ea80782
parent5f08ec854fc03a3b3780c4d704837d22be9f2ace (diff)
downloadbcm5719-llvm-f0e4a52211969bdb3a1a876a3c24ceeafd5a3d27.tar.gz
bcm5719-llvm-f0e4a52211969bdb3a1a876a3c24ceeafd5a3d27.zip
Handle parameter attributes
llvm-svn: 47243
-rw-r--r--clang/Sema/SemaDecl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/Sema/SemaDecl.cpp b/clang/Sema/SemaDecl.cpp
index 6a718aef915..9a19928ce7d 100644
--- a/clang/Sema/SemaDecl.cpp
+++ b/clang/Sema/SemaDecl.cpp
@@ -936,8 +936,8 @@ Sema::DeclTy *Sema::FinalizeDeclaratorGroup(Scope *S, DeclTy *group) {
// Called from Sema::ParseStartOfFunctionDef().
ParmVarDecl *
-Sema::ActOnParamDeclarator(struct DeclaratorChunk::ParamInfo &PI, Scope *FnScope)
-{
+Sema::ActOnParamDeclarator(struct DeclaratorChunk::ParamInfo &PI,
+ Scope *FnScope) {
IdentifierInfo *II = PI.Ident;
// TODO: CHECK FOR CONFLICTS, multiple decls with same name in one scope.
// Can this happen for params? We already checked that they don't conflict
@@ -977,7 +977,6 @@ Sema::ActOnParamDeclarator(struct DeclaratorChunk::ParamInfo &PI, Scope *FnScope
ParmVarDecl *New = new ParmVarDecl(PI.IdentLoc, II, parmDeclType,
VarDecl::None, 0);
- // FIXME: Handle attributes
if (PI.InvalidType)
New->setInvalidDecl();
@@ -989,6 +988,7 @@ Sema::ActOnParamDeclarator(struct DeclaratorChunk::ParamInfo &PI, Scope *FnScope
FnScope->AddDecl(New);
}
+ HandleDeclAttributes(New, PI.AttrList, 0);
return New;
}
OpenPOWER on IntegriCloud