]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: provide types for all order-allocated temporaries
authorKeith Randall <khr@golang.org>
Sat, 6 Oct 2018 21:31:08 +0000 (14:31 -0700)
committerKeith Randall <khr@golang.org>
Mon, 15 Oct 2018 16:07:52 +0000 (16:07 +0000)
commit63e964e1741277c4da004e366111243f9ec942a2
treed2ccfb193c1a30c3dab28e58bbef3b46ece19697
parent296b7aeae0b3231f2e943859b37108e5f9e130d3
cmd/compile: provide types for all order-allocated temporaries

Ensure that we correctly type the stack temps for regular closures,
method function closures, and slice literals.

Then we don't need to override the dummy types later.
Furthermore, this allows order to reuse temporaries of these types.

OARRAYLIT doesn't need a temporary as far as I can tell, so I
removed that case from order.

Change-Id: Ic58520fa50c90639393ff78f33d3c831d5c4acb9
Reviewed-on: https://go-review.googlesource.com/c/140306
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/internal/gc/closure.go
src/cmd/compile/internal/gc/order.go
test/live.go