aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-08-17 00:34:00 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-08-17 00:34:00 +0000
commitaeb288123e51cbf5855b06eb9d8c108fd6124286 (patch)
tree71ec33f51c90e08a5e99eb500411037bfe00e6be
parentcbf97c5a12c4fe8528a8365087e1d81005589288 (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.h6
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) {}