]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/gc: fix mayAffectMemory in esc.go
authorIskander Sharipov <iskander.sharipov@intel.com>
Tue, 4 Sep 2018 14:17:32 +0000 (17:17 +0300)
committerIskander Sharipov <iskander.sharipov@intel.com>
Wed, 5 Sep 2018 14:16:25 +0000 (14:16 +0000)
commit4cf33e361ada37d8fee9443a258abd167e31d033
tree3cb5d0f7adf41a1a79013424d0ab47ff5abf8de8
parent3fd364988ce5dcf3aa1d4eb945d233455db30af6
cmd/compile/internal/gc: fix mayAffectMemory in esc.go

For OINDEX and other Left+Right nodes, we want the whole
node to be considered as "may affect memory" if either
of Left or Right affect memory. Initial implementation
only considered node as such if both Left and Right were non-safe.

Change-Id: Icfb965a0b4c24d8f83f3722216db068dad2eba95
Reviewed-on: https://go-review.googlesource.com/133275
Run-TryBot: Iskander Sharipov <iskander.sharipov@intel.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/gc/esc.go
test/escape_param.go