diff options
| author | Eric Christopher <echristo@gmail.com> | 2013-08-29 18:00:58 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2013-08-29 18:00:58 +0000 |
| commit | f8a1baab9d54e93b7ea310f1cece3ca8223aa5b3 (patch) | |
| tree | 6bff29c783ac5f2e8d64dc72a100eab5b4546b85 | |
| parent | d7b837e78d805ffee8bde8f0182bfe85c2841aeb (diff) | |
| download | bcm5719-llvm-f8a1baab9d54e93b7ea310f1cece3ca8223aa5b3.tar.gz bcm5719-llvm-f8a1baab9d54e93b7ea310f1cece3ca8223aa5b3.zip | |
Fix warning about anonymous structs in anonymous unions.
llvm-svn: 189596
| -rw-r--r-- | clang/lib/Analysis/Consumed.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/clang/lib/Analysis/Consumed.cpp b/clang/lib/Analysis/Consumed.cpp index a0f8ea16390..43e2153c227 100644 --- a/clang/lib/Analysis/Consumed.cpp +++ b/clang/lib/Analysis/Consumed.cpp @@ -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: |

