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.
or so to only compute this once?
Only call ConstantFoldLoadFromConst when new entry has been inserted.
Yeah that's better, updated!
Can drop braces
Hm, if this happens, won't we leave behind references to a removed global? I think we need to make sure all initializers are known upfront, e.g. in the above offset checking loop.
Bail out if global initializer cannot be evaluated (test added in a011823bff4d5399).
Ping :)
LGTM