aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/phiopt.go
diff options
context:
space:
mode:
authorTodd Neal <todd@tneal.org>2016-03-13 23:04:31 -0500
committerTodd Neal <todd@tneal.org>2016-03-14 11:04:40 +0000
commit98b88de56f50ac67eeafcb326ed6a0b198182f59 (patch)
tree2087647ffc8594114d98924186e902c4e5810f24 /src/cmd/compile/internal/ssa/phiopt.go
parent2dcbbbd193bf604570ecdfe4f696f32da95e7ffe (diff)
downloadgo-98b88de56f50ac67eeafcb326ed6a0b198182f59.tar.gz
go-98b88de56f50ac67eeafcb326ed6a0b198182f59.zip
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>
Diffstat (limited to 'src/cmd/compile/internal/ssa/phiopt.go')
-rw-r--r--src/cmd/compile/internal/ssa/phiopt.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/ssa/phiopt.go b/src/cmd/compile/internal/ssa/phiopt.go
index 31870a650a..132366cfc1 100644
--- a/src/cmd/compile/internal/ssa/phiopt.go
+++ b/src/cmd/compile/internal/ssa/phiopt.go
@@ -66,7 +66,7 @@ func phiopt(f *Func) {
if ok && isCopy {
if f.pass.debug > 0 {
- f.Config.Warnl(int(b.Line), "converted OpPhi to OpCopy")
+ f.Config.Warnl(b.Line, "converted OpPhi to OpCopy")
}
v.reset(OpCopy)
v.AddArg(b0.Control)
@@ -74,7 +74,7 @@ func phiopt(f *Func) {
}
if ok && !isCopy {
if f.pass.debug > 0 {
- f.Config.Warnl(int(b.Line), "converted OpPhi to OpNot")
+ f.Config.Warnl(b.Line, "converted OpPhi to OpNot")
}
v.reset(OpNot)
v.AddArg(b0.Control)