aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/shortcircuit.go
diff options
context:
space:
mode:
authorDaniel Martí <mvdan@mvdan.cc>2018-04-03 15:52:30 +0100
committerDaniel Martí <mvdan@mvdan.cc>2018-04-09 17:10:25 +0000
commit14393c5cd4fed812c87ba45fe4e2b8d07c02e8fa (patch)
treeac746e8d20619b2cf609e3d1403f528af02caeb6 /src/cmd/compile/internal/ssa/shortcircuit.go
parent54c3f56ee0f0b89426ae2052ffead689707fec81 (diff)
downloadgo-14393c5cd4fed812c87ba45fe4e2b8d07c02e8fa.tar.gz
go-14393c5cd4fed812c87ba45fe4e2b8d07c02e8fa.zip
cmd: remove a few more unused parameters
ssa's pos parameter on the Const* funcs is unused, so remove it. ld's alloc parameter on elfnote is always true, so remove the arguments and simplify the code. Finally, arm's addpltreloc never has its return parameter used, so remove it. Change-Id: I63387ecf6ab7b5f7c20df36be823322bb98427b8 Reviewed-on: https://go-review.googlesource.com/104456 Run-TryBot: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/ssa/shortcircuit.go')
-rw-r--r--src/cmd/compile/internal/ssa/shortcircuit.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/ssa/shortcircuit.go b/src/cmd/compile/internal/ssa/shortcircuit.go
index 506be4e7a0..5be1ec98f9 100644
--- a/src/cmd/compile/internal/ssa/shortcircuit.go
+++ b/src/cmd/compile/internal/ssa/shortcircuit.go
@@ -37,12 +37,12 @@ func shortcircuit(f *Func) {
}
if e.i == 0 {
if ct == nil {
- ct = f.ConstBool(f.Entry.Pos, f.Config.Types.Bool, true)
+ ct = f.ConstBool(f.Config.Types.Bool, true)
}
v.SetArg(i, ct)
} else {
if cf == nil {
- cf = f.ConstBool(f.Entry.Pos, f.Config.Types.Bool, false)
+ cf = f.ConstBool(f.Config.Types.Bool, false)
}
v.SetArg(i, cf)
}