summaryrefslogtreecommitdiffstats
path: root/clang/lib
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
commitaaae302c5afe13d089ec9fbace99a3ef0ddb014d (patch)
tree7e1a67ef5ad646069891dee97f7a54e403c3c9ec /clang/lib
parente8fee34c62f8cd1f89135fec35bf6031af0029fe (diff)
downloadbcm5719-llvm-aaae302c5afe13d089ec9fbace99a3ef0ddb014d.tar.gz
bcm5719-llvm-aaae302c5afe13d089ec9fbace99a3ef0ddb014d.zip
Name some anonymous structs to avoid using a (very common) extension.
llvm-svn: 286152
Diffstat (limited to 'clang/lib')
-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