mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-03 08:25:49 +01:00
Changes the vectors on `Lower::FileContext` to be `FixedSizeValueStore` where possible, which we have several at this point. This changes `FixedSizeValueStore` to prefer inferring the size from a `ValueStore<IdT>`, which should make adding incorrect sizes harder. Note I wasn't sure that adding a `size()` to `TypeStore` that returned `insts().size()` would be good because it doesn't directly work that way; `ConstantValueStore` would've also required more work since it doesn't have access to that right now.