r286152 - Name some anonymous structs to avoid using a (very common) extension.

John McCall via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 7 13:13:27 PST 2016


Author: rjmccall
Date: Mon Nov  7 15:13:27 2016
New Revision: 286152

URL: http://llvm.org/viewvc/llvm-project?rev=286152&view=rev
Log:
Name some anonymous structs to avoid using a (very common) extension.

Modified:
    cfe/trunk/lib/CodeGen/CGCall.h

Modified: cfe/trunk/lib/CodeGen/CGCall.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCall.h?rev=286152&r1=286151&r2=286152&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGCall.h (original)
+++ cfe/trunk/lib/CodeGen/CGCall.h Mon Nov  7 15:13:27 2016
@@ -73,16 +73,19 @@ namespace CodeGen {
       Last = PseudoDestructor
     };
 
+    struct BuiltinInfoStorage {
+      const FunctionDecl *Decl;
+      unsigned ID;
+    };
+    struct PseudoDestructorInfoStorage {
+      const CXXPseudoDestructorExpr *Expr;
+    };
+
     SpecialKind KindOrFunctionPointer;
     union {
       CGCalleeInfo AbstractInfo;
-      struct {
-        const FunctionDecl *Decl;
-        unsigned ID;
-      } BuiltinInfo;
-      struct {
-        const CXXPseudoDestructorExpr *Expr;
-      } PseudoDestructorInfo;
+      BuiltinInfoStorage BuiltinInfo;
+      PseudoDestructorInfoStorage PseudoDestructorInfo;
     };
 
     explicit CGCallee(SpecialKind kind) : KindOrFunctionPointer(kind) {}




More information about the cfe-commits mailing list