From 9145dfa21226cb1ad9069f29d4ceac8731743c5e Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Tue, 7 Jul 2015 15:48:11 +0000 Subject: [PATCH] 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 --- include/clang/AST/DeclObjC.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/include/clang/AST/DeclObjC.h b/include/clang/AST/DeclObjC.h index 25fd59996b2..89d97920600 100644 --- a/include/clang/AST/DeclObjC.h +++ b/include/clang/AST/DeclObjC.h @@ -608,12 +608,15 @@ class ObjCTypeParamDecl : public TypedefNameDecl { /// @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;