From ddfef020d1a44c871a0bba8234dd157f091f1aff Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Tue, 11 Feb 2014 15:36:41 -0500 Subject: [PATCH] go.tools/go/ssa/interp: add missing case to fake reflect function. LGTM=gri R=gri CC=golang-codereviews https://golang.org/cl/61410049 --- go/ssa/interp/reflect.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/go/ssa/interp/reflect.go b/go/ssa/interp/reflect.go index edb7a86b..a297eff8 100644 --- a/go/ssa/interp/reflect.go +++ b/go/ssa/interp/reflect.go @@ -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)) }