]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix importing rewritten f(g()) calls
authorMatthew Dempsky <mdempsky@google.com>
Mon, 18 Mar 2019 19:19:26 +0000 (12:19 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Mon, 18 Mar 2019 19:43:38 +0000 (19:43 +0000)
commit916e861fd969e19e918e5b24c45a834c63dd8ee4
tree56d90f42f3b4ee7128ec9a65c64e258beac30e9e
parent2c423f063b137781a97a6a56998a2e3abffc4051
cmd/compile: fix importing rewritten f(g()) calls

golang.org/cl/166983 started serializing the Ninit field of OCALL
nodes within function inline bodies (necessary to fix a regression in
building crypto/ecdsa with -gcflags=-l=4), but this means the Ninit
field needs to be typechecked when the imported function body is used.

It's unclear why this wasn't necessary for the crypto/ecdsa
regression.

Fixes #30907.

Change-Id: Id5f0bf3c4d17bbd6d5318913b859093c93a0a20c
Reviewed-on: https://go-review.googlesource.com/c/go/+/168199
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/typecheck.go
test/fixedbugs/issue30907.dir/a.go [new file with mode: 0644]
test/fixedbugs/issue30907.dir/b.go [new file with mode: 0644]
test/fixedbugs/issue30907.go [new file with mode: 0644]