astgen: const locals that end up being rvalues do not alloc

Local variable declarations now detect whether the result location for the
initialization expression consumes the result location as a pointer. If
it does, then the local is emitted as a LocalPtr. Otherwise it is
emitted as a LocalVal.

This results in clean, straightforward ZIR code for semantic analysis.
2f992e1bb3Andrew Kelley committed on 2/1/2021, 4:09:22 AMparent093cbeb
1 file changedLine totals unavailable