diff options
author | John McCall <rjmccall@apple.com> | 2011-10-01 05:17:03 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-10-01 05:17:03 +0000 |
commit | e82247a71a1a76e78f3b979b64d5f6412ab40266 (patch) | |
tree | dfe73fd7a7b7b163bee57b7bbadf0a54416dafdb /lib/Sema/SemaExpr.cpp | |
parent | 130e5efd29a52a7cbd17c7b4a4744a320ee29692 (diff) |
Hey, maybe we shouldn't silently ignore decl attributes
on declarators written as types.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140931 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExpr.cpp')
-rw-r--r-- | lib/Sema/SemaExpr.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index 0fea54b77d..d0a3f6b5ec 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -4291,6 +4291,8 @@ Sema::ActOnCastExpr(Scope *S, SourceLocation LParenLoc, CheckExtraCXXDefaultArguments(D); } + checkUnusedDeclAttributes(D); + QualType castType = castTInfo->getType(); Ty = CreateParsedType(castType, castTInfo); |