]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: convert type during finishcompare
authorMichael Fraenkel <michael.fraenkel@gmail.com>
Thu, 1 Mar 2018 14:26:38 +0000 (09:26 -0500)
committerMatthew Dempsky <mdempsky@google.com>
Fri, 2 Mar 2018 19:48:23 +0000 (19:48 +0000)
commit5b071bfa88e3366dec768b9e3304f131b258835b
tree7391e46270cf9d5ae5d92c059f1949835f47aeb7
parent9b95611e38ce59733ccc8306c49acea0403bab4b
cmd/compile: convert type during finishcompare

When recursively calling walkexpr, r.Type is still the untyped value.
It then sometimes recursively calls finishcompare, which complains that
you can't compare the resulting expression to that untyped value.

Updates #23834.

Change-Id: I6b7acd3970ceaff8da9216bfa0ae24aca5dee828
Reviewed-on: https://go-review.googlesource.com/97856
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/walk.go