Don't put anonymous structs within anonymous unions.

llvm-svn: 241598
This commit is contained in:
Douglas Gregor 2015-07-07 15:48:11 +00:00
parent 9200b2f93b
commit f631f2d268
1 changed files with 7 additions and 4 deletions

View File

@ -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;