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()
|
return reflect.ValueOf(v).Pointer()
|
||||||
case *ssa.Function:
|
case *ssa.Function:
|
||||||
return uintptr(unsafe.Pointer(v))
|
return uintptr(unsafe.Pointer(v))
|
||||||
|
case *closure:
|
||||||
|
return uintptr(unsafe.Pointer(v))
|
||||||
default:
|
default:
|
||||||
panic(fmt.Sprintf("reflect.(Value).Pointer(%T)", v))
|
panic(fmt.Sprintf("reflect.(Value).Pointer(%T)", v))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue