r189596 - Fix warning about anonymous structs in anonymous unions.

Eric Christopher echristo at gmail.com
Thu Aug 29 11:00:58 PDT 2013


Author: echristo
Date: Thu Aug 29 13:00:58 2013
New Revision: 189596

URL: http://llvm.org/viewvc/llvm-project?rev=189596&view=rev
Log:
Fix warning about anonymous structs in anonymous unions.

Modified:
    cfe/trunk/lib/Analysis/Consumed.cpp

Modified: cfe/trunk/lib/Analysis/Consumed.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/Consumed.cpp?rev=189596&r1=189595&r2=189596&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/Consumed.cpp (original)
+++ cfe/trunk/lib/Analysis/Consumed.cpp Thu Aug 29 13:00:58 2013
@@ -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:





More information about the cfe-commits mailing list