Message ID | mcrha2bkfbk.fsf@iant-glaptop.roam.corp.google.com |
---|---|
State | New |
Headers | show |
diff -r cc0233176c9b libgo/go/reflect/value.go --- a/libgo/go/reflect/value.go Sun Jul 20 08:12:13 2014 -0700 +++ b/libgo/go/reflect/value.go Sun Jul 20 12:19:22 2014 -0700 @@ -434,13 +434,12 @@ // Get function pointer, type. t := v.typ var ( - fn unsafe.Pointer - rcvr Value - rcvrtype *rtype + fn unsafe.Pointer + rcvr Value ) if v.flag&flagMethod != 0 { rcvr = v - rcvrtype, t, fn = methodReceiver(op, v, int(v.flag)>>flagMethodShift) + _, t, fn = methodReceiver(op, v, int(v.flag)>>flagMethodShift) } else if v.flag&flagIndir != 0 { fn = *(*unsafe.Pointer)(v.ptr) } else {