reflect: Fix bug calling method on indirect value.
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 17 Sep 2013 22:11:43 +0000 (22:11 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 17 Sep 2013 22:11:43 +0000 (22:11 +0000)
commitb15d794389aaf8d87e53549aea1e171a5deaad78
tree6990912d681eeeada6a993bf6923d62a5add528d
parent09d5094b2d48192f5e4cc7be9b123289c41a8f65
reflect: Fix bug calling method on indirect value.

The gccgo-specific iword function was checking v.kind, but for
a method value that is always Func.  Fix to check v.typ.Kind()
instead.

From-SVN: r202670
libgo/go/reflect/value.go