]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: resolve TODO in inl.go
authorzikaeroh <zikaeroh@gmail.com>
Tue, 7 Sep 2021 07:38:40 +0000 (00:38 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Tue, 7 Sep 2021 19:39:04 +0000 (19:39 +0000)
commitd92101f452e10680ad4c8af2d5ad40d940b59214
treeafdc8794aeb7cb8dffd30eca36faf408916dea2a
parent903958d2f506decf92a1bfd63dfbecadf8375735
cmd/compile: resolve TODO in inl.go

If the condition is a bool constant, there's no need to walk both
branches.

Passes toolstash -cmp.

Change-Id: I4ee5e3553ce07c2213efba0d33d869b4a1b57783
Reviewed-on: https://go-review.googlesource.com/c/go/+/347911
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Trust: Keith Randall <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/compile/internal/inline/inl.go