From: John McCall Date: Mon, 7 Nov 2016 21:13:27 +0000 (+0000) Subject: Name some anonymous structs to avoid using a (very common) extension. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=160bd19f24125ad07d66a6d0bd1fe4370d33ff09;p=clang Name some anonymous structs to avoid using a (very common) extension. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@286152 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGCall.h b/lib/CodeGen/CGCall.h index 11c427e503..031ce831cb 100644 --- a/lib/CodeGen/CGCall.h +++ b/lib/CodeGen/CGCall.h @@ -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) {}