summaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/CGCall.h
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2016-11-07 21:13:27 +0000
committerJohn McCall <rjmccall@apple.com>2016-11-07 21:13:27 +0000
commit160bd19f24125ad07d66a6d0bd1fe4370d33ff09 (patch)
treeb09c8806ea9f9a9bce754fb86222d4f5948c7481 /lib/CodeGen/CGCall.h
parent91eab399fc0bc20dfb971bb7b32f68d4949bba94 (diff)
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
Diffstat (limited to 'lib/CodeGen/CGCall.h')
-rw-r--r--lib/CodeGen/CGCall.h17
1 files changed, 10 insertions, 7 deletions
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) {}