]> granicus.if.org Git - clang/commitdiff
Don't put anonymous structs within anonymous unions.
authorDouglas Gregor <dgregor@apple.com>
Tue, 7 Jul 2015 15:48:11 +0000 (15:48 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 7 Jul 2015 15:48:11 +0000 (15:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@241598 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclObjC.h

index 25fd59996b2a5dfe5ffeaa391f1168173c149531..89d97920600cbc3f62171b0ed999b8ec4114dd6a 100644 (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;