aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/shortcircuit.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2016-12-07 18:14:35 -0800
committerRobert Griesemer <gri@golang.org>2016-12-08 21:36:52 +0000
commitcfd17f51c87765fbd2b9c32e54722a32975bedf2 (patch)
tree988bd54e06b98fa72ad2269e1e482f5a33d11d86 /src/cmd/compile/internal/ssa/shortcircuit.go
parenteab3707d6d5a746eb60011c40831ea9083ae533c (diff)
downloadgo-cfd17f51c87765fbd2b9c32e54722a32975bedf2.tar.gz
go-cfd17f51c87765fbd2b9c32e54722a32975bedf2.zip
[dev.inline] cmd/compile/internal/ssa: rename various fields from Line to Pos
This is a mostly mechanical rename followed by manual fixes where necessary. Change-Id: Ie5c670b133db978f15dc03e50dc2da0c80fc8842 Reviewed-on: https://go-review.googlesource.com/34137 Reviewed-by: David Lazar <lazard@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 ff05a04c47..e6c274641e 100644
--- a/src/cmd/compile/internal/ssa/shortcircuit.go
+++ b/src/cmd/compile/internal/ssa/shortcircuit.go
@@ -17,8 +17,8 @@ func shortcircuit(f *Func) {
// x = phi(a, ...)
//
// We can replace the "a" in the phi with the constant true.
- ct := f.ConstBool(f.Entry.Line, f.Config.fe.TypeBool(), true)
- cf := f.ConstBool(f.Entry.Line, f.Config.fe.TypeBool(), false)
+ ct := f.ConstBool(f.Entry.Pos, f.Config.fe.TypeBool(), true)
+ cf := f.ConstBool(f.Entry.Pos, f.Config.fe.TypeBool(), false)
for _, b := range f.Blocks {
for _, v := range b.Values {
if v.Op != OpPhi {