diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-08-17 00:34:00 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-08-17 00:34:00 +0000 |
commit | aeb288123e51cbf5855b06eb9d8c108fd6124286 (patch) | |
tree | 71ec33f51c90e08a5e99eb500411037bfe00e6be | |
parent | cbf97c5a12c4fe8528a8365087e1d81005589288 (diff) |
Fix misaligned DeclGroup allocation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162069 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/AST/DeclGroup.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/clang/AST/DeclGroup.h b/include/clang/AST/DeclGroup.h index 63cdac5949..cda6ae520a 100644 --- a/include/clang/AST/DeclGroup.h +++ b/include/clang/AST/DeclGroup.h @@ -26,7 +26,11 @@ class DeclGroupIterator; class DeclGroup { // FIXME: Include a TypeSpecifier object. - unsigned NumDecls; + union { + unsigned NumDecls; + + Decl *Aligner; + }; private: DeclGroup() : NumDecls(0) {} |