]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: change type of clear argument of ordercopyexpr to bool
authorMartin Möhrmann <moehrmann@google.com>
Wed, 17 Jan 2018 19:26:23 +0000 (20:26 +0100)
committerMartin Möhrmann <moehrmann@google.com>
Wed, 14 Feb 2018 09:40:40 +0000 (09:40 +0000)
commit3d4c9cecc8781364df0f1084594bccbb0378021d
treeebce701800e9d88dfab50b1c03bdc74b6eeac147
parent57020705f321d5c652c38ace050e78e2455cd07e
cmd/compile: change type of clear argument of ordercopyexpr to bool

ordercopyexpr is only called with 0 or 1 as value for the clear
argument. The clear variable in ordercopyexpr is only used in the
call to ordertemp which has a clear argument of type bool.

Change the clear argument of ordercopyexpr from int to bool and change
calls to ordercopyexpr to use false instead of 0 and true instead of 1.

Passes toolstash -cmp.

Change-Id: Ic264aafd3b0c8b99f6ef028ffaa2e30f23f9125a
Reviewed-on: https://go-review.googlesource.com/88115
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
src/cmd/compile/internal/gc/order.go