As pointed out in D133835 these globals will never be written to
(they're only used for trivially copyable types), so they can always be
constant.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D146211
Make globals used for array initialization codegen constant ClosedPublic Authored by hans on Mar 16 2023, 3:30 AM.
Details Summary As pointed out in D133835 these globals will never be written to
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Mar 16 2023, 4:39 PM Closed by commit rG4a2757d80f0a: Make globals used for array initialization codegen constant (authored by hans). · Explain WhyMar 17 2023, 1:28 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 506003 clang/lib/CodeGen/CGExprAgg.cpp
clang/test/CodeGen/init.c
clang/test/CodeGen/label-array-aggregate-init.c
|