olga.a.chupina added inline comments.
Comment at: lib/Parse/ParseDecl.cpp:4811
@@ -4810,2 +4810,3 @@
case tok::kw___unaligned:
- if (AttrReqs & AR_DeclspecAttributesParsed) {
+ // Allow __unaligned in function definition after a parameter list
+ if ((AttrReqs &
olga.a.chupina added a comment.
Reid, cloud you please review the patch.
http://reviews.llvm.org/D17709
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
olga.a.chupina created this revision.
olga.a.chupina added a reviewer: rnk.
olga.a.chupina added a subscriber: cfe-commits.
This patch supports using '__unaligned' attribute in function declaration:
struct UnalignedS {
void foo(double) __unaligned { ; }
};
void bar(void (UnalignedS::*pf)(doubl