]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix misassumption about n.Left.Bounded()
authorMatthew Dempsky <mdempsky@google.com>
Thu, 16 Apr 2020 23:49:10 +0000 (16:49 -0700)
committerKeith Randall <khr@golang.org>
Fri, 17 Apr 2020 01:07:31 +0000 (01:07 +0000)
commit843453d09e1a4dc9631056e9e3f4199f87106a48
treef42f23619b05b2b12536fa24e11b1985dacac2e3
parent7ea40f6594ada6631b3fd153c87916c51628a7e2
cmd/compile: fix misassumption about n.Left.Bounded()

n.Bounded() is overloaded for multiple meanings based on n.Op. We
can't safely use n.Left.Bounded() without checking n.Left.Op.

Change-Id: I71fe4faa24798dfe3a5705fa3419a35ef93b0ce2
Reviewed-on: https://go-review.googlesource.com/c/go/+/228677
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/cmd/compile/internal/gc/ssa.go