summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGCall.h17
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) {}
OpenPOWER on IntegriCloud