]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix binary import of unsafe.Pointer literals
authorMartin Möhrmann <martisch@uos.de>
Sun, 21 Aug 2016 15:08:04 +0000 (17:08 +0200)
committerRobert Griesemer <gri@golang.org>
Tue, 23 Aug 2016 18:03:07 +0000 (18:03 +0000)
commit9aea69d6dc20420c726782dc17d9760ab7b68890
tree624f57f79cd777e305c02c91bbee3e1937325480
parentee333b4b7482873e24d39c5c0b3ea1f7ea4ebdcc
cmd/compile: fix binary import of unsafe.Pointer literals

Add a type conversion to uintptr for untyped constants
before the conversion to unsafe.Pointer.

Fixes #16317

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