]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix defer/go calls to variadic unsafe-uintptr functions
authorMatthew Dempsky <mdempsky@google.com>
Sat, 17 Oct 2020 08:10:06 +0000 (01:10 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Sat, 17 Oct 2020 21:30:53 +0000 (21:30 +0000)
commit76a615b20a943b7255ac1cb3944df62a1dbc882c
tree31469239777a713c744aa899c8fd90d279b8f902
parent30119bcca997d154e4ab200b01afa7007b088994
cmd/compile: fix defer/go calls to variadic unsafe-uintptr functions

Before generating wrapper function, turn any f(a, b, []T{c, d, e}...)
calls back into f(a, b, c, d, e). This allows the existing code for
recognizing and specially handling unsafe.Pointer->uintptr conversions
to correctly handle variadic arguments too.

Fixes #41460.

Change-Id: I0a1255abdd1bd5dafd3e89547aedd4aec878394c
Reviewed-on: https://go-review.googlesource.com/c/go/+/263297
Trust: Matthew Dempsky <mdempsky@google.com>
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.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/gc/walk.go
test/fixedbugs/issue24491a.go