From b06961b4f0f4786fb6b92e472d4a056bed650c66 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 13 Jul 2015 15:46:53 -0600 Subject: [PATCH] [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 --- src/cmd/compile/internal/gc/type.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.48.1