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) {} _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits