Files
clang-p2996/llvm/lib/Transforms/IPO/GlobalOpt.cpp
Florian Hahn 84870c4abb [GlobalOpt] Collect initializer when building GlobalPart.
Update the code to collect the initializer when collecting the types for
a global, as suggested by @nikic in D144476.

This replaces code which bailed out if *any* part doesn't have an
initializer with a continue to just skip parts which don't have an
initializer.

Depends on D145489.

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D145490
2023-03-19 20:47:59 +00:00

93 KiB