[release-branch.go1.5] cmd/compile: fix register allocation for == operator
The issue 12226 has been caused by the allocation of the same register for the equality check of two byte values. The code in cgen.go freed the register for the second operand before the allocation of the register for the first operand. Fixes #12226 Change-Id: Ie4dc33a488bd48a17f8ae9b497fd63c1ae390555 Reviewed-on: https://go-review.googlesource.com/13771 Reviewed-by:Russ Cox <rsc@golang.org> Reviewed-on: https://go-review.googlesource.com/14227 Reviewed-by:
Ian Lance Taylor <iant@golang.org>
Loading
Please sign in to comment