mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 19:00:11 +01:00
`DoVarPreWorkImpl` was provided an incorrect pattern type while trying to match `var` parameters, which caused the toolchain to crash in `Convert`. This commit changes `DoVarPreWorkImpl`'s API so it derives the pattern type from the work item's pattern ID, rather than relying on an external source. --------- Co-authored-by: Dana Jansens <danakj@orodu.net>