[all-commits] [llvm/llvm-project] ebd25f: [clang] Fix Wnested-anon-types in ABIArgInfo
Raphael Isemann via All-commits
all-commits at lists.llvm.org
Fri May 21 02:19:17 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ebd25fde5e04fa954f3fbad3fa0ee89f511a907a
https://github.com/llvm/llvm-project/commit/ebd25fde5e04fa954f3fbad3fa0ee89f511a907a
Author: Raphael Isemann <teemperor at gmail.com>
Date: 2021-05-21 (Fri, 21 May 2021)
Changed paths:
M clang/include/clang/CodeGen/CGFunctionInfo.h
Log Message:
-----------
[clang] Fix Wnested-anon-types in ABIArgInfo
D98794 added the DirectAttr/IndirectAttr struct fields to that union, but
declaring anonymous structs in an anonymous union triggers `-Wnested-anon-types`
warnings. We can't just give them a name as they are in an anonymous union, so
this just declares the type outside.
```
clang/include/clang/CodeGen/CGFunctionInfo.h:97:5: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
struct {
^
clang/include/clang/CodeGen/CGFunctionInfo.h:101:5: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
struct {
^
```
Reviewed By: chill
Differential Revision: https://reviews.llvm.org/D102903
More information about the All-commits
mailing list