mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-15 11:48:29 +00:00
When `FindStorageArgForInitializer` is called from `EmitAggregateInitializer` on a `SpliceInst`, that `SpliceInst` is expected to have a constant `InstValue`. That may only be true in the function specific though. The `SpecificId` in `FindStorageArgForInitializer` defaults to `None` and can't be set by the caller. Add a new `FindStorageArgForInitializerInSpecific` that takes the `SpecificId` and corresponding `File`. The original `FindStorageArgForInitializer` is now a wrapper around the new function. This allows `EmitAggregateInitializer` to set the appropriate `SpecificId`. Fixes https://github.com/carbon-language/carbon-lang/issues/7873