• isharipo's avatar
    cmd/compile/internal/gc: properly initialize ssa.Func Type field · 3afd2d7f
    isharipo authored
    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: 's avatarJosh Bleecher Snyder <josharian@gmail.com>
    3afd2d7f
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...