Files
carbon-lang/toolchain/check
Richard Smith 23339bc810 Fix initialization of var parameters. (#7023)
When an initializing expression is used to initialize a var parameter,
we need to create the storage earlier in SemIR than the initializing
expression. To do so, pass a pending block to initialization containing
the var storage.

Also stop using `temporary` for this purpose, since we treat temporaries
as potentially-constant and immutable, but `var` parameters can be
mutated by the callee. We should ideally introduce a new kind of
instruction for this purpose but for now we just use `var_storage`.
2026-04-28 20:10:13 +00:00
..
2025-07-11 22:29:10 +00:00
2026-02-23 16:48:23 +00:00
2026-04-27 19:04:59 +00:00
2026-04-16 23:31:31 +00:00
2026-04-16 23:31:31 +00:00
2026-04-16 23:31:31 +00:00
2026-04-27 19:04:59 +00:00
2026-04-27 19:04:59 +00:00