mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-01 06:54:59 +01:00
AsCompatible changes a source instruction's type to a compatible type, so it also needs its constant value to take on the compatible type. Otherwise the type of the instruction and its constant value will differ, which makes moving to the constant value into a lossy transformation. Part of #4868