From: Matthew Dempsky Date: Thu, 22 Mar 2018 18:18:24 +0000 (-0700) Subject: cmd/compile: change unsafeUintptrTag from var to const X-Git-Tag: go1.11beta1~1135 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=50921bfa2e154f2e9346ebefba073c15c8afc453;p=gostls13.git cmd/compile: change unsafeUintptrTag from var to const Change-Id: Ie30878199e24cce5b75428e6b602c017ebd16642 Reviewed-on: https://go-review.googlesource.com/102175 Run-TryBot: Matthew Dempsky Reviewed-by: Daniel Martí --- 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.