From: Douglas Gregor Date: Tue, 7 Jul 2015 15:48:11 +0000 (+0000) Subject: Don't put anonymous structs within anonymous unions. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9145dfa21226cb1ad9069f29d4ceac8731743c5e;p=clang Don't put anonymous structs within anonymous unions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@241598 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/DeclObjC.h b/include/clang/AST/DeclObjC.h index 25fd59996b..89d9792060 100644 --- a/include/clang/AST/DeclObjC.h +++ b/include/clang/AST/DeclObjC.h @@ -608,12 +608,15 @@ public: /// @end /// \endcode class ObjCTypeParamList { + /// Stores the components of a SourceRange as a POD. + struct PODSourceRange { + unsigned Begin; + unsigned End; + }; + union { /// Location of the left and right angle brackets. - struct { - unsigned Begin; - unsigned End; - } Brackets; + PODSourceRange Brackets; // Used only for alignment. ObjCTypeParamDecl *AlignmentHack;