]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: emit assignments after calls in the right order
authorKeith Randall <khr@golang.org>
Thu, 27 Oct 2016 16:23:48 +0000 (09:23 -0700)
committerKeith Randall <khr@golang.org>
Thu, 27 Oct 2016 16:52:30 +0000 (16:52 +0000)
commita047b6bf7d90cc7185f18af3c179dfc7e66b66e9
treee9dbadb55edb9ece169ac88a81b376e0b1e5934b
parentdc53ea77721e1d5c372c04ba3f20d45e5aec7103
cmd/compile: emit assignments after calls in the right order

Fixes a bug where assignments that should come after a call
were instead being issued before the call.

Fixes #17596
Fixes #17618

Change-Id: Ic9ae4c34ae38fc4ccd0604b65345b05896a2c295
Reviewed-on: https://go-review.googlesource.com/32226
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/cmd/compile/internal/gc/walk.go
test/fixedbugs/issue17596.go [new file with mode: 0644]