mirror of
https://github.com/golang/go
synced 2024-11-18 22:44:48 -07:00
go.tools/go/ssa/interp: add missing case to fake reflect function.
LGTM=gri R=gri CC=golang-codereviews https://golang.org/cl/61410049
This commit is contained in:
parent
1a5e5b083b
commit
ddfef020d1
@ -348,6 +348,8 @@ func ext۰reflect۰Value۰Pointer(fr *frame, args []value) value {
|
||||
return reflect.ValueOf(v).Pointer()
|
||||
case *ssa.Function:
|
||||
return uintptr(unsafe.Pointer(v))
|
||||
case *closure:
|
||||
return uintptr(unsafe.Pointer(v))
|
||||
default:
|
||||
panic(fmt.Sprintf("reflect.(Value).Pointer(%T)", v))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user