From: Matthew Dempsky Date: Thu, 30 Jun 2022 00:22:15 +0000 (-0700) Subject: [dev.unified] cmd/compile/internal/walk: fix typo in debug print X-Git-Tag: go1.20rc1~1807^2~36 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e3cdc981c8;p=gostls13.git [dev.unified] cmd/compile/internal/walk: fix typo in debug print We want to print `init` here. We called `ir.TakeInit(r)` earlier, so `r.Init()` always evaluates to nil at this point. Change-Id: I196fdcfbf5e63c80b7bff0cce1881c9e58302501 Reviewed-on: https://go-review.googlesource.com/c/go/+/415239 Auto-Submit: Matthew Dempsky Reviewed-by: David Chase Run-TryBot: Matthew Dempsky TryBot-Result: Gopher Robot Reviewed-by: Cuong Manh Le --- diff --git a/src/cmd/compile/internal/walk/order.go b/src/cmd/compile/internal/walk/order.go index 525c29b96f..19376f5bda 100644 --- a/src/cmd/compile/internal/walk/order.go +++ b/src/cmd/compile/internal/walk/order.go @@ -987,7 +987,7 @@ func (o *orderState) stmt(n ir.Node) { do(0, recv.X.Type().Elem()) do(1, types.Types[types.TBOOL]) if len(init) != 0 { - ir.DumpList("ninit", r.Init()) + ir.DumpList("ninit", init) base.Fatalf("ninit on select recv") } orderBlock(ncas.PtrInit(), o.free)