From: Brad Fitzpatrick Date: Mon, 13 Jul 2015 21:46:53 +0000 (-0600) Subject: [dev.ssa] cmd/compile: treat unsafe.Pointer as a pointer X-Git-Tag: go1.7beta1~1623^2^2~391 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b06961b4f0f4786fb6b92e472d4a056bed650c66;p=gostls13.git [dev.ssa] cmd/compile: treat unsafe.Pointer as a pointer Change-Id: I3f3ac3055c93858894b8852603d79592bbc1696b Reviewed-on: https://go-review.googlesource.com/12140 Reviewed-by: Keith Randall --- diff --git a/src/cmd/compile/internal/gc/type.go b/src/cmd/compile/internal/gc/type.go index 7f7b6635e0..f60d01b3bb 100644 --- a/src/cmd/compile/internal/gc/type.go +++ b/src/cmd/compile/internal/gc/type.go @@ -56,7 +56,7 @@ func (t *Type) IsFloat() bool { } func (t *Type) IsPtr() bool { - return t.Etype == TPTR32 || t.Etype == TPTR64 || + return t.Etype == TPTR32 || t.Etype == TPTR64 || t.Etype == TUNSAFEPTR || t.Etype == TMAP || t.Etype == TCHAN || t.Etype == TFUNC }