]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/gc: fix invalid positions for sink nodes in esc.go
authorIskander Sharipov <iskander.sharipov@intel.com>
Tue, 14 Aug 2018 16:22:16 +0000 (19:22 +0300)
committerCherry Zhang <cherryyz@google.com>
Mon, 3 Sep 2018 16:46:59 +0000 (16:46 +0000)
commit67ac554d7978eb93f3dfe7a819c67948dd291d88
tree80b5c226f42bfa67256c90c67adf8189eead3110
parent5ed30d82b7ad4d5be12db588f088c34f8c1c0a86
cmd/compile/internal/gc: fix invalid positions for sink nodes in esc.go

Make OAS2 and OAS2FUNC sink locations point to the assignment position,
not the nth LHS position.

Fixes #26987

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