[cfe-commits] r162069 - /cfe/trunk/include/clang/AST/DeclGroup.h

Richard Smith richard-llvm at metafoo.co.uk
Thu Aug 16 17:34:00 PDT 2012


Author: rsmith
Date: Thu Aug 16 19:34:00 2012
New Revision: 162069

URL: http://llvm.org/viewvc/llvm-project?rev=162069&view=rev
Log:
Fix misaligned DeclGroup allocation.

Modified:
    cfe/trunk/include/clang/AST/DeclGroup.h

Modified: cfe/trunk/include/clang/AST/DeclGroup.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclGroup.h?rev=162069&r1=162068&r2=162069&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/DeclGroup.h (original)
+++ cfe/trunk/include/clang/AST/DeclGroup.h Thu Aug 16 19:34:00 2012
@@ -26,7 +26,11 @@
 
 class DeclGroup {
   // FIXME: Include a TypeSpecifier object.
-  unsigned NumDecls;
+  union {
+    unsigned NumDecls;
+
+    Decl *Aligner;
+  };
 
 private:
   DeclGroup() : NumDecls(0) {}





More information about the cfe-commits mailing list