1
0
mirror of https://github.com/golang/go synced 2024-11-19 01:24:39 -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:
Alan Donovan 2014-02-11 15:36:41 -05:00
parent 1a5e5b083b
commit ddfef020d1

View File

@ -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))
}