]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: fix double evaluation in interface comparison
authorDaniel Morsing <daniel.morsing@gmail.com>
Tue, 18 Sep 2012 15:40:53 +0000 (17:40 +0200)
committerDaniel Morsing <daniel.morsing@gmail.com>
Tue, 18 Sep 2012 15:40:53 +0000 (17:40 +0200)
commit804a43ca76a00c207a39d2846e3fe754d761ca2e
tree94072e4bfae5ccad72d480bece645792f3f5d1b0
parent648c9eb0b5eb6ddfef70299fcf19a8c323913e44
cmd/gc: fix double evaluation in interface comparison

During interface compare, the operands will be evaluated twice. The operands might include function calls for conversion, so make them cheap before comparing them.

R=rsc
CC=golang-dev
https://golang.org/cl/6498133
src/cmd/gc/walk.c