mirror of
https://github.com/golang/go
synced 2024-10-05 22:21:23 -06:00
[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 <khr@golang.org>
This commit is contained in:
parent
a92bd66282
commit
b06961b4f0
@ -56,7 +56,7 @@ func (t *Type) IsFloat() bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (t *Type) IsPtr() 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
|
t.Etype == TMAP || t.Etype == TCHAN || t.Etype == TFUNC
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user