diff options
Diffstat (limited to 'lib/Sema/SemaDeclAttr.cpp')
-rw-r--r-- | lib/Sema/SemaDeclAttr.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp index 752a0fb3e1..cdb5485666 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/lib/Sema/SemaDeclAttr.cpp @@ -54,8 +54,10 @@ static inline bool isNSStringType(QualType T, ASTContext &Ctx) { ClsName == &Ctx.Idents.get("NSMutableString"); } -void Sema::ProcessDeclAttributes(Decl *D, const AttributeList *DeclSpecAttrs, - const AttributeList *DeclaratorAttrs) { +void Sema::ProcessDeclAttributes(Decl *D, Declarator &PD) { + const AttributeList *DeclSpecAttrs = PD.getDeclSpec().getAttributes(); + const AttributeList *DeclaratorAttrs = PD.getAttributes(); + if (DeclSpecAttrs == 0 && DeclaratorAttrs == 0) return; ProcessDeclAttributeList(D, DeclSpecAttrs); |