mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-30 17:35:02 +01:00
When deduction has to substitute binding parameters into further generic parameters, we do conversion of the argument to the substituted type. Then we replace the argument instruction id with that Converted instruction. This causes a redundant specific to be created for the Converted instruction which is not needed. What we want is the specific for its constant value. So when we replace the argument instruction id, replace it with the instruction from the constant value of the converted argument. This was raised in [discord #toolchain](https://discord.com/channels/655572317891461132/655578254970716160/1349067541070217306).