From: Keith Randall Date: Sun, 6 Sep 2015 20:42:26 +0000 (-0700) Subject: [dev.ssa] cmd/compile/internal/gc: handle local function declarations X-Git-Tag: go1.7beta1~1623^2^2~197 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c3eb1a7e8a191c0d0be3a3cc3e835010560e4b5a;p=gostls13.git [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 --- diff --git a/src/cmd/compile/internal/gc/ssa.go b/src/cmd/compile/internal/gc/ssa.go index 01db547736..9a9834f3e1 100644 --- a/src/cmd/compile/internal/gc/ssa.go +++ b/src/cmd/compile/internal/gc/ssa.go @@ -96,6 +96,8 @@ func buildssa(fn *Node) (ssafn *ssa.Func, usessa bool) { case PAUTO: // processed at each use, to prevent Addr coming // before the decl. + case PFUNC: + // local function - already handled by frontend default: str := "" if n.Class&PHEAP != 0 {