Jon Roelofs d143103068 [GlobalOpt] Fix a miscompile when evaluating struct initializers.
The bug was that evaluateBitcastFromPtr attempts a narrowing to a struct's 0th
element of a store that covers other elements. While this is okay on the load
side, applying it to stores causes us to miss the writes to the additionally
covered elements.

rdar://79503568

Differential revision: https://reviews.llvm.org/D105838
2021-07-14 15:37:01 -07:00
..
2020-12-04 11:05:01 -08:00
2019-05-24 01:03:51 +00:00
2021-05-11 11:34:37 -07:00
2021-05-11 11:34:37 -07:00
2021-05-11 11:34:37 -07:00