]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/gc: properly initialize ssa.Func Type field
authorisharipo <iskander.sharipov@intel.com>
Fri, 23 Mar 2018 18:56:21 +0000 (21:56 +0300)
committerJosh Bleecher Snyder <josharian@gmail.com>
Sat, 24 Mar 2018 02:18:52 +0000 (02:18 +0000)
commit3afd2d7fc87615e124b77692e87095bdba79e557
tree830a5038b9ae1dd7b30dc1a43cbacd1b32876f01
parentea668e18a6ee48c46fb585265086a908ef7768a1
cmd/compile/internal/gc: properly initialize ssa.Func Type field

The ssa.Func has Type field that is described as
function signature type.

It never gets any value and remains nil.
This leads to "<T>" signature printed representation.

Given this function declaration:
func foo(x int, f func() string) (int, error)

GOSSAFUNC printed it as below:
compiling foo
foo <T>

After this change:
compiling foo
foo func(int, func() string) (int, error)

Change-Id: Iec5eec8aac5c76ff184659e30f41b2f5fe86d329
Reviewed-on: https://go-review.googlesource.com/102375
Run-TryBot: Iskander Sharipov <iskander.sharipov@intel.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/cmd/compile/internal/gc/ssa.go