]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/gc: unify self-assignment checks in esc.go
authorIskander Sharipov <iskander.sharipov@intel.com>
Wed, 19 Sep 2018 12:53:03 +0000 (15:53 +0300)
committerIskander Sharipov <iskander.sharipov@intel.com>
Thu, 20 Sep 2018 09:46:11 +0000 (09:46 +0000)
commit499fbb1a8ae20a69aa7f49287c65eec845963a30
treec01eb3c07a3b090048b81e461898a02ea5593ca4
parent9a033bf9d3f5f7485d82836ec95e51a3fa74a926
cmd/compile/internal/gc: unify self-assignment checks in esc.go

Move slice self-assign check into isSelfAssign function.
Make debug output consistent for all self-assignment cases.

Change-Id: I0e4cc7b3c1fcaeace7226dd80a0dc1ea97347a55
Reviewed-on: https://go-review.googlesource.com/136276
Run-TryBot: Iskander Sharipov <iskander.sharipov@intel.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/internal/gc/esc.go
test/escape2.go
test/escape2n.go