diff options
| author | Matthew Dempsky <mdempsky@google.com> | 2018-03-22 11:18:24 -0700 |
|---|---|---|
| committer | Matthew Dempsky <mdempsky@google.com> | 2018-03-22 19:38:06 +0000 |
| commit | 50921bfa2e154f2e9346ebefba073c15c8afc453 (patch) | |
| tree | d460c5fe378acf8139ea9f7179ffe94156e88e7c /src | |
| parent | 0b37f05d8dc17a52a9ac1fc827075cd36fe977bb (diff) | |
| download | go-50921bfa2e154f2e9346ebefba073c15c8afc453.tar.xz | |
cmd/compile: change unsafeUintptrTag from var to const
Change-Id: Ie30878199e24cce5b75428e6b602c017ebd16642
Reviewed-on: https://go-review.googlesource.com/102175
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Daniel Martà <mvdan@mvdan.cc>
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmd/compile/internal/gc/esc.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cmd/compile/internal/gc/esc.go b/src/cmd/compile/internal/gc/esc.go index c5021f4a48..6ce2299ba2 100644 --- a/src/cmd/compile/internal/gc/esc.go +++ b/src/cmd/compile/internal/gc/esc.go @@ -2168,9 +2168,7 @@ func moveToHeap(n *Node) { // This special tag is applied to uintptr variables // that we believe may hold unsafe.Pointers for // calls into assembly functions. -// It is logically a constant, but using a var -// lets us take the address below to get a *string. -var unsafeUintptrTag = "unsafe-uintptr" +const unsafeUintptrTag = "unsafe-uintptr" // This special tag is applied to uintptr parameters of functions // marked go:uintptrescapes. |
