diff options
| author | Michael Matloob <matloob@google.com> | 2015-06-14 09:52:13 -0700 |
|---|---|---|
| committer | Michael Matloob <michaelmatloob@gmail.com> | 2015-06-17 00:12:24 +0000 |
| commit | 0991ec454b8a53bf11c4c01f75dd2fa7a34362cc (patch) | |
| tree | e9dc825517a787ab381610569e6491ed2ba36b0f /src/cmd | |
| parent | a5c3b6642bb01a96b59db1e55a3479549fbcca08 (diff) | |
| download | go-0991ec454b8a53bf11c4c01f75dd2fa7a34362cc.tar.xz | |
[dev.ssa] cmd/compile/internal/ssa: set line in newValue variants
This CL sets line numbers on Values in the newValue variants
introduced in cl/10929.
Change-Id: Ibd15bc90631a1e948177878ea4191d995e8bb19b
Reviewed-on: https://go-review.googlesource.com/11090
Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/cmd')
| -rw-r--r-- | src/cmd/compile/internal/ssa/func.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/ssa/func.go b/src/cmd/compile/internal/ssa/func.go index c71e6d4e38..d73e0ea9e0 100644 --- a/src/cmd/compile/internal/ssa/func.go +++ b/src/cmd/compile/internal/ssa/func.go @@ -51,6 +51,7 @@ func (b *Block) NewValue0(line int32, op Op, t Type) *Value { Op: op, Type: t, Block: b, + Line: line, } v.Args = v.argstorage[:0] b.Values = append(b.Values, v) @@ -65,6 +66,7 @@ func (b *Block) NewValue0I(line int32, op Op, t Type, auxint int64) *Value { Type: t, AuxInt: auxint, Block: b, + Line: line, } v.Args = v.argstorage[:0] b.Values = append(b.Values, v) @@ -101,6 +103,7 @@ func (b *Block) NewValue0IA(line int32, op Op, t Type, auxint int64, aux interfa AuxInt: auxint, Aux: aux, Block: b, + Line: line, } v.Args = v.argstorage[:0] b.Values = append(b.Values, v) @@ -114,6 +117,7 @@ func (b *Block) NewValue1(line int32, op Op, t Type, arg *Value) *Value { Op: op, Type: t, Block: b, + Line: line, } v.Args = v.argstorage[:1] v.Args[0] = arg @@ -129,6 +133,7 @@ func (b *Block) NewValue1I(line int32, op Op, t Type, auxint int64, arg *Value) Type: t, AuxInt: auxint, Block: b, + Line: line, } v.Args = v.argstorage[:1] v.Args[0] = arg @@ -161,6 +166,7 @@ func (b *Block) NewValue1IA(line int32, op Op, t Type, auxint int64, aux interfa AuxInt: auxint, Aux: aux, Block: b, + Line: line, } v.Args = v.argstorage[:1] v.Args[0] = arg |
