From: Matthew Dempsky Date: Thu, 5 May 2022 18:54:11 +0000 (-0700) Subject: cmd/compile/internal/pkginit: fix typecheck.DeclFunc call X-Git-Tag: go1.19beta1~402 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=72d1cb092e0008419676be353703298cadccf3a2;p=gostls13.git cmd/compile/internal/pkginit: fix typecheck.DeclFunc call CL 403935 changed the API for typecheck.DeclFunc, while CL 403851 was submitted in the mean time and added another call to it. Change-Id: I0de59f34197bf241c1dd42cffbab7a91f9eb825d Reviewed-on: https://go-review.googlesource.com/c/go/+/404434 Run-TryBot: Matthew Dempsky Auto-Submit: Matthew Dempsky Reviewed-by: David Chase TryBot-Result: Gopher Robot --- diff --git a/src/cmd/compile/internal/pkginit/init.go b/src/cmd/compile/internal/pkginit/init.go index 9cd3e74abe..67942c37c0 100644 --- a/src/cmd/compile/internal/pkginit/init.go +++ b/src/cmd/compile/internal/pkginit/init.go @@ -107,7 +107,7 @@ func Task() *ir.Name { base.Pos = base.AutogeneratedPos typecheck.DeclContext = ir.PEXTERN name := noder.Renameinit() - fnInit := typecheck.DeclFunc(name, ir.NewFuncType(base.Pos, nil, nil, nil)) + fnInit := typecheck.DeclFunc(name, nil, nil, nil) // Get an array of intrumented global variables. globals := instrumentGlobals(fnInit)