]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix inlining of constant if statements
authorMatthew Dempsky <mdempsky@google.com>
Tue, 27 Feb 2018 19:14:11 +0000 (11:14 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Tue, 27 Feb 2018 19:27:32 +0000 (19:27 +0000)
commitd7cd61ceaac488e3130ccf9dd12eeaa13df8e814
tree428fba7153d7bf5bb244b745b5f0529552cf8ff6
parent230b0bad1f9685e824c9096deb4badbe93377733
cmd/compile: fix inlining of constant if statements

We accidentally overlooked needing to still visit Ninit for OIF
statements with constant conditions in golang.org/cl/96778.

Fixes #24120.

Change-Id: I5b341913065ff90e1163fb872b9e8d47e2a789d2
Reviewed-on: https://go-review.googlesource.com/97475
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/inl.go
test/fixedbugs/issue24120.go [new file with mode: 0644]