]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: change the type of ssa Warnl line number
authorTodd Neal <todd@tneal.org>
Mon, 14 Mar 2016 04:04:31 +0000 (23:04 -0500)
committerTodd Neal <todd@tneal.org>
Mon, 14 Mar 2016 11:04:40 +0000 (11:04 +0000)
commit98b88de56f50ac67eeafcb326ed6a0b198182f59
tree2087647ffc8594114d98924186e902c4e5810f24
parent2dcbbbd193bf604570ecdfe4f696f32da95e7ffe
cmd/compile: change the type of ssa Warnl line number

Line numbers are always int32, so the Warnl function should take the
line number as an int32 as well.  This matches gc.Warnl and removes
a cast every place it's used.

Change-Id: I5d6201e640d52ec390eb7174f8fd8c438d4efe58
Reviewed-on: https://go-review.googlesource.com/20662
Run-TryBot: Todd Neal <todd@tneal.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/ssa/config.go
src/cmd/compile/internal/ssa/export_test.go
src/cmd/compile/internal/ssa/func.go
src/cmd/compile/internal/ssa/likelyadjust.go
src/cmd/compile/internal/ssa/nilcheck.go
src/cmd/compile/internal/ssa/phiopt.go
src/cmd/compile/internal/ssa/prove.go