]> Cypherpunks.ru repositories - gostls13.git/commitdiff
cmd/compile: drop unused arg to mkinlcall
authorMichael Pratt <mpratt@google.com>
Mon, 1 May 2023 17:09:47 +0000 (13:09 -0400)
committerGopher Robot <gobot@golang.org>
Mon, 1 May 2023 17:39:11 +0000 (17:39 +0000)
Change-Id: I3cd8d81cc434257d78b34dfaae09a77ab3211121
Reviewed-on: https://go-review.googlesource.com/c/go/+/490896
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Michael Pratt <mpratt@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/compile/internal/inline/inl.go

index df12f9a625caab2f8479ee59ade20a20ca96fbcb..d5bd1a50bf6419acfdf833222a9539f8a2240fc2 100644 (file)
@@ -892,7 +892,7 @@ func inlnode(n ir.Node, bigCaller bool, inlCalls *[]*ir.InlinedCallExpr, edit fu
                        break
                }
                if fn := inlCallee(call.X, profile); fn != nil && typecheck.HaveInlineBody(fn) {
-                       n = mkinlcall(call, fn, bigCaller, inlCalls, edit)
+                       n = mkinlcall(call, fn, bigCaller, inlCalls)
                        if fn.IsHiddenClosure() {
                                // Visit function to pick out any contained hidden
                                // closures to mark them as dead, since they will no
@@ -1023,7 +1023,7 @@ func inlineCostOK(n *ir.CallExpr, caller, callee *ir.Func, bigCaller bool) (bool
 // The result of mkinlcall MUST be assigned back to n, e.g.
 //
 //     n.Left = mkinlcall(n.Left, fn, isddd)
-func mkinlcall(n *ir.CallExpr, fn *ir.Func, bigCaller bool, inlCalls *[]*ir.InlinedCallExpr, edit func(ir.Node) ir.Node) ir.Node {
+func mkinlcall(n *ir.CallExpr, fn *ir.Func, bigCaller bool, inlCalls *[]*ir.InlinedCallExpr) ir.Node {
        if fn.Inl == nil {
                if logopt.Enabled() {
                        logopt.LogOpt(n.Pos(), "cannotInlineCall", "inline", ir.FuncName(ir.CurFunc),