Skip to content

Commit

Permalink
Don't put anonymous structs within anonymous unions.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@241598 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
DougGregor committed Jul 7, 2015
1 parent d00ea5e commit 9145dfa
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions include/clang/AST/DeclObjC.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9145dfa

Please sign in to comment.