mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-23 19:32:40 +00:00
Formatting an instruction with an initializing expr category will call `FindStorageArgForInitializer()` to get the target id. `GetExprCategory()` supports imported instructions by walking to the imported IR, in order to get the expr category. We do the same in `FindStorageArgForInitializer()`, instead of hitting a CARBON_CHECK. The new test crashes without the changes here.