aboutsummaryrefslogtreecommitdiff
path: root/src/database/sql
diff options
context:
space:
mode:
authorCuong Manh Le <cuong.manhle.vn@gmail.com>2021-02-21 22:09:03 +0700
committerCuong Manh Le <cuong.manhle.vn@gmail.com>2021-02-25 18:49:25 +0000
commit1a3e968b1fcb2082b1d99be563a7c9f8c61c66ba (patch)
tree2d8ff660d3fca88c050537fedbee38f623ec05b6 /src/database/sql
parentee2a45e5fbee473b81c8ab81da8d83699d64e01f (diff)
downloadgo-1a3e968b1fcb2082b1d99be563a7c9f8c61c66ba.tar.xz
cmd/compile: fix mishandling of unsafe-uintptr arguments with call method in go/defer
In CL 253457, we did the same fix for direct function calls. But for method calls, the receiver argument also need to be passed through the wrapper function, which we are not doing so the compiler crashes with the code in #44415. As we already rewrite t.M(...) into T.M(t, ...) during walkCall1, to fix this, we can do the same trick in wrapCall, so the receiver argument will be treated as others. Fixes #44415 Change-Id: I396182983c85d9c5e4494657da79d25636e8a079 Reviewed-on: https://go-review.googlesource.com/c/go/+/294849 Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com> Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com> Reviewed-by: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'src/database/sql')
0 files changed, 0 insertions, 0 deletions