]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: preserve original call arguments when pointer checking
authorIan Lance Taylor <iant@golang.org>
Fri, 21 Oct 2016 14:54:46 +0000 (07:54 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 21 Oct 2016 20:46:20 +0000 (20:46 +0000)
commitb7c7949817e5bee801dfb333f483a080fa1f29e7
treeb2c553a3b7002bbae7e297336e4ce8e03233943d
parenta73d68e75eece80f8514bb1b368420843c1f58ad
cmd/cgo: preserve original call arguments when pointer checking

With the old code rewriting refs would rewrite the inner arguments
rather than the outer ones, leaving a reference to C.val in the outer
arguments.

Change-Id: I9b91cb4179eccd08500d14c6591bb15acf8673eb
Reviewed-on: https://go-review.googlesource.com/31672
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
misc/cgo/test/cgo_test.go
misc/cgo/test/checkconst.go [new file with mode: 0644]
src/cmd/cgo/gcc.go