mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 20:50:13 +01:00
`GetCallee` is sometimes called on a spliced instruction, and is checking its exact inst operand to see if it's a `BoundMethod`. This fails if the `BoundMethod` is wrapped in another instruction, such as a splice. Normally our approach for such a situation would be to constant-evaluate the operand, but that doesn't work here because the `BoundMethod` will be non-constant if its bound `self` is. So instead we now step through splice instructions manually when looking for the `BoundMethod`.