[PATCH] D76096: [clang] allow const structs/unions/arrays to be constant expressions for C
Nick Desaulniers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 21 13:44:29 PDT 2023
nickdesaulniers updated this revision to Diff 543048.
nickdesaulniers retitled this revision from "[clang] allow const structs to be constant expressions for C" to "[clang] allow const structs/unions/arrays to be constant expressions for C".
nickdesaulniers added a comment.
- add moar tests for unions
- modify commit one line description to mentions arrays and unions, since those are also records
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76096/new/
https://reviews.llvm.org/D76096
Files:
clang/docs/ReleaseNotes.rst
clang/lib/AST/ExprConstant.cpp
clang/test/CodeGen/builtin-constant-p.c
clang/test/CodeGen/const-init.c
clang/test/Sema/builtins.c
clang/test/Sema/init.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76096.543048.patch
Type: text/x-patch
Size: 6561 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230721/feb7deb6/attachment-0001.bin>
More information about the cfe-commits
mailing list