diff options
author | Chris Lattner <sabre@nondot.org> | 2008-06-29 00:19:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-06-29 00:19:33 +0000 |
commit | 0bf29ad534c381087e89efadbf7aff0579bf259f (patch) | |
tree | 34b02e62517a7acf994316741ac4220739b55586 /lib/Sema/SemaType.cpp | |
parent | e5c5ee1cff9ec084f176fa252774262677857ad2 (diff) |
handle type attributes when converting types, not when processing decls.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52877 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaType.cpp')
-rw-r--r-- | lib/Sema/SemaType.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp index bf023394f3..8fadd80f8b 100644 --- a/lib/Sema/SemaType.cpp +++ b/lib/Sema/SemaType.cpp @@ -456,6 +456,11 @@ QualType Sema::GetTypeForDeclarator(Declarator &D, Scope *S) { } } + // If there were any type attributes applied to the decl itself (not the + // type, apply the type attribute to the type!) + if (const AttributeList *Attrs = D.getAttributes()) + ProcessTypeAttributes(T, Attrs); + return T; } |