diff options
author | John McCall <rjmccall@apple.com> | 2016-11-07 21:13:27 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2016-11-07 21:13:27 +0000 |
commit | aaae302c5afe13d089ec9fbace99a3ef0ddb014d (patch) | |
tree | 7e1a67ef5ad646069891dee97f7a54e403c3c9ec /clang/lib/CodeGen | |
parent | e8fee34c62f8cd1f89135fec35bf6031af0029fe (diff) | |
download | bcm5719-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/CodeGen')
-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) {} |