[PATCH] D17709: [MSVC Compat] Support for '__unaligned' attribute in function declaration
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 14 05:34:51 PDT 2016
aaron.ballman added a subscriber: aaron.ballman.
================
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 & AR_DeclspecAttributesParsed) ||
----------------
MSDN suggests that __unaligned is only valid on a pointer declaration. Is there something this is expected to support, or does MSVC just happen to silently accept the keyword in this position?
http://reviews.llvm.org/D17709
More information about the cfe-commits
mailing list