mirror of
https://github.com/golang/go
synced 2024-10-05 20:31:20 -06:00
[dev.ssa] cmd/compile/internal/gc: handle local function declarations
They are already handled by the frontend, we just need to skip them when we see them in ssa. Change-Id: I309d91552f96a761f8d429a2cab3a47d200ca9e5 Reviewed-on: https://go-review.googlesource.com/14341 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
95bb89f6dd
commit
c3eb1a7e8a
@ -96,6 +96,8 @@ func buildssa(fn *Node) (ssafn *ssa.Func, usessa bool) {
|
|||||||
case PAUTO:
|
case PAUTO:
|
||||||
// processed at each use, to prevent Addr coming
|
// processed at each use, to prevent Addr coming
|
||||||
// before the decl.
|
// before the decl.
|
||||||
|
case PFUNC:
|
||||||
|
// local function - already handled by frontend
|
||||||
default:
|
default:
|
||||||
str := ""
|
str := ""
|
||||||
if n.Class&PHEAP != 0 {
|
if n.Class&PHEAP != 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user