1
0
mirror of https://github.com/golang/go synced 2024-11-05 17:36:15 -07:00
go/doc
Matthew Dempsky f049d911e9 cmd/compile: be stricter about recognizing safety rule #4
unsafe.Pointer safety rule #4 says "The compiler handles a Pointer
converted to a uintptr in the argument list of a call". Within escape
analysis, we've always required this be a single conversion
unsafe.Pointer->uintptr conversion, but the corresponding logic in
order is somewhat laxer, allowing arbitrary chains of OCONVNOPs from
unsafe.Pointer to uintptr.

This CL changes order to be stricter to match escape analysis.

Passes toolstash-check.

Change-Id: Iadd210d2123accb2020f5728ea2a47814f703352
Reviewed-on: https://go-review.googlesource.com/c/go/+/229578
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2020-04-23 00:08:35 +00:00
..
articles
codewalk
gopher doc/gopher: add model sheet 2018-07-18 04:00:10 +00:00
play
progs
asm.html
cmd.html
contrib.html
contribute.html
debugging_with_gdb.html
diagnostics.html
editors.html
effective_go.html
gccgo_contribute.html
gccgo_install.html
go1.1.html
go1.2.html
go1.3.html
go1.4.html
go1.5.html
go1.6.html
go1.7.html
go1.8.html
go1.9.html
go1.10.html
go1.11.html
go1.12.html
go1.13.html
go1.14.html
go1.15.html cmd/compile: be stricter about recognizing safety rule #4 2020-04-23 00:08:35 +00:00
go1.html
go1compat.html
go_faq.html
go_mem.html
go_spec.html
go-logo-black.png
go-logo-blue.png
go-logo-white.png
help.html
ie.css
install-source.html
install.html
share.png
tos.html