[PATCH] D122248: [clang][CodeGen]Fix clang crash and add bitfield support in __builtin_dump_struct
Wang Yihan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 24 10:58:45 PDT 2022
yihanaa updated this revision to Diff 417990.
yihanaa added a comment.
Support dump bitwidth of bitfields, and unnamed bitfields.
for example:
struct Bar {
unsigned c : 1;
unsigned : 3;
unsigned : 0;
unsigned b;
};
struct Bar {
unsigned int c : 1 = 0
unsigned int : 3 = 0
unsigned int : 0
unsigned int b = 0
}
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122248/new/
https://reviews.llvm.org/D122248
Files:
clang/docs/ReleaseNotes.rst
clang/lib/CodeGen/CGBuiltin.cpp
clang/test/CodeGen/dump-struct-builtin.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122248.417990.patch
Type: text/x-patch
Size: 48420 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220324/e9c99746/attachment-0001.bin>
More information about the cfe-commits
mailing list