]> granicus.if.org Git - clang/commitdiff
Fix warning about anonymous structs in anonymous unions.
authorEric Christopher <echristo@gmail.com>
Thu, 29 Aug 2013 18:00:58 +0000 (18:00 +0000)
committerEric Christopher <echristo@gmail.com>
Thu, 29 Aug 2013 18:00:58 +0000 (18:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189596 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/Consumed.cpp

index a0f8ea16390edc2b6af5cb909563fedb4c295873..43e2153c22717c9a89b28555b70ee7448edbe8c8 100644 (file)
@@ -122,17 +122,19 @@ class PropagationInfo {
     IT_BinTest,
     IT_Var
   } InfoType;
+
+  struct BinTestTy {
+    const BinaryOperator *Source;
+    EffectiveOp EOp;
+    VarTestResult LTest;
+    VarTestResult RTest;
+  };
   
   union {
     ConsumedState State;
     VarTestResult Test;
     const VarDecl *Var;
-    struct {
-      const BinaryOperator *Source;
-      EffectiveOp EOp;
-      VarTestResult LTest;
-      VarTestResult RTest;
-    } BinTest;
+    BinTestTy BinTest;
   };
   
 public: