Index: lib/Sema/SemaDecl.cpp |
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp |
index 85352c2e5a6f26ebebcb2fadac08f0be2d73c53e..33c45bd2e30e87ddf382fc98447c65d3e8e216cf 100644 |
--- a/lib/Sema/SemaDecl.cpp |
+++ b/lib/Sema/SemaDecl.cpp |
@@ -6724,6 +6724,15 @@ Decl *Sema::ActOnFinishFunctionBody(Decl *dcl, Stmt *Body, |
return dcl; |
} |
+ |
+/// When we finish delayed parsing of an attribute, we must attach it to the |
+/// relevant Decl. |
+void Sema::ActOnFinishDelayedAttribute(Scope *S, Decl *D, |
+ ParsedAttributes &Attrs) { |
+ ProcessDeclAttributeList(S, D, Attrs.getList()); |
+} |
+ |
+ |
/// ImplicitlyDefineFunction - An undeclared identifier was used in a function |
/// call, forming a call to an implicitly defined function (per C99 6.5.1p2). |
NamedDecl *Sema::ImplicitlyDefineFunction(SourceLocation Loc, |