diff options
-rw-r--r-- | clang/lib/CodeGen/CGCall.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/clang/lib/CodeGen/CGCall.h b/clang/lib/CodeGen/CGCall.h index 11c427e503a..031ce831cb3 100644 --- a/clang/lib/CodeGen/CGCall.h +++ b/clang/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) {} |