]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: fix TestUnifiedCompare
authorMatthew Dempsky <mdempsky@google.com>
Fri, 25 Jun 2021 08:49:26 +0000 (01:49 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Fri, 25 Jun 2021 09:33:03 +0000 (09:33 +0000)
commit9fe7c38d3d7cd8a90e33515981dd00e1233563c9
treeb4f831427082d7b3c5a508747aae46ffad3a1fba
parentf4198f85d505c21eee3f2686466e72daa7413232
[dev.typeparams] cmd/compile: fix TestUnifiedCompare

We need to start the capture walk from expr.Body, not expr, otherwise
in quirks mode we'll set all of the captured variables' positions to
expr.Body.Rbrace.

Change-Id: Ic93f2773ae3756c2ec88dac17b4e9fb5a0771734
Reviewed-on: https://go-review.googlesource.com/c/go/+/330889
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
src/cmd/compile/internal/noder/writer.go