]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: simplify mkinlcall1
authorMatthew Dempsky <mdempsky@google.com>
Mon, 9 Oct 2017 18:06:52 +0000 (11:06 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Tue, 10 Oct 2017 17:53:27 +0000 (17:53 +0000)
commitb80029ccf422cfdfa758838fd18a219901cda839
treed6b4406e91e5d4eacac45bf25fc4f3b663c9e59c
parentf58c6c991581fde4eca563100126eadceab48e80
cmd/compile: simplify mkinlcall1

mkinlcall1 already guards against recursively inlining functions into
themselves, so there's no need to clear and restore fn.Func.Inl during
recursive inlining.

Passes toolstash-check.

Change-Id: I8bf0c8dea8788d94d3ea5670610b4acb1d26d2fb
Reviewed-on: https://go-review.googlesource.com/69310
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/gc/inl.go