mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: drop unused arg to mkinlcall
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>
This commit is contained in:
parent
6b859d9d58
commit
63edd418b6
1 changed files with 2 additions and 2 deletions
|
|
@ -892,7 +892,7 @@ func inlnode(n ir.Node, bigCaller bool, inlCalls *[]*ir.InlinedCallExpr, edit fu
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
if fn := inlCallee(call.X, profile); fn != nil && typecheck.HaveInlineBody(fn) {
|
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() {
|
if fn.IsHiddenClosure() {
|
||||||
// Visit function to pick out any contained hidden
|
// Visit function to pick out any contained hidden
|
||||||
// closures to mark them as dead, since they will no
|
// 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.
|
// The result of mkinlcall MUST be assigned back to n, e.g.
|
||||||
//
|
//
|
||||||
// n.Left = mkinlcall(n.Left, fn, isddd)
|
// 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 fn.Inl == nil {
|
||||||
if logopt.Enabled() {
|
if logopt.Enabled() {
|
||||||
logopt.LogOpt(n.Pos(), "cannotInlineCall", "inline", ir.FuncName(ir.CurFunc),
|
logopt.LogOpt(n.Pos(), "cannotInlineCall", "inline", ir.FuncName(ir.CurFunc),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue