]> granicus.if.org Git - clang/commitdiff
Name some anonymous structs to avoid using a (very common) extension.
authorJohn McCall <rjmccall@apple.com>
Mon, 7 Nov 2016 21:13:27 +0000 (21:13 +0000)
committerJohn McCall <rjmccall@apple.com>
Mon, 7 Nov 2016 21:13:27 +0000 (21:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@286152 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGCall.h

index 11c427e503a6f73a5902fcbdf7e5dbd6a17ceaae..031ce831cb3751fe83a229e6b0812dfdb114684e 100644 (file)
@@ -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) {}