]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/inline: allow inlining of checkptr arguments
authorMatthew Dempsky <mdempsky@google.com>
Mon, 20 Nov 2023 05:00:17 +0000 (21:00 -0800)
committerGopher Robot <gobot@golang.org>
Mon, 20 Nov 2023 15:12:49 +0000 (15:12 +0000)
commit28a8896d57f315b241b77eff26d9302cfe88c13b
treeb8324d7df68562eb29b17bbeaf0267aac95b76ab
parent0709f1bb00287371da61a1fc94f6e2a086aa0f29
cmd/compile/internal/inline: allow inlining of checkptr arguments

The early return here is meant to suppress inlining of the function
call itself. However, it also suppresses recursing to visit the call
arguments, which are safe to inline.

Change-Id: I75887574c00931cb622277d04a822bc84c29bfa2
Reviewed-on: https://go-review.googlesource.com/c/go/+/543658
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/internal/inline/inl.go
test/fixedbugs/issue35073a.go [moved from test/fixedbugs/issue35073.go with 100% similarity]
test/fixedbugs/issue35073b.go [new file with mode: 0644]