diff options
author | Josh Bleecher Snyder <josharian@gmail.com> | 2017-03-22 20:27:54 -0700 |
---|---|---|
committer | Josh Bleecher Snyder <josharian@gmail.com> | 2017-03-25 00:09:21 +0000 |
commit | 34975095d0fbf61e1c22c0adf71ca1568106862f (patch) | |
tree | 699f16106310438b3ded6e2f1d400599bb603c54 /src/cmd/compile/internal/ssa/writebarrier.go | |
parent | 34396adac1949438e8f059a199d813ac4619f158 (diff) | |
download | go-34975095d0fbf61e1c22c0adf71ca1568106862f.tar.gz go-34975095d0fbf61e1c22c0adf71ca1568106862f.zip |
cmd/compile: provide pos and curfn to temp
Concurrent compilation requires providing an
explicit position and curfn to temp.
This implementation of tempAt temporarily
continues to use the globals lineno and Curfn,
so as not to collide with mdempsky's
work for #19683 eliminating the Curfn dependency
from func nod.
Updates #15756
Updates #19683
Change-Id: Ib3149ca4b0740e9f6eea44babc6f34cdd63028a9
Reviewed-on: https://go-review.googlesource.com/38592
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/cmd/compile/internal/ssa/writebarrier.go')
-rw-r--r-- | src/cmd/compile/internal/ssa/writebarrier.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/ssa/writebarrier.go b/src/cmd/compile/internal/ssa/writebarrier.go index a8eac9f5eb..35be9a09d7 100644 --- a/src/cmd/compile/internal/ssa/writebarrier.go +++ b/src/cmd/compile/internal/ssa/writebarrier.go @@ -267,7 +267,7 @@ func wbcall(pos src.XPos, b *Block, fn *obj.LSym, typ interface{}, ptr, val, mem // a function call). Marshaling the args to typedmemmove might clobber the // value we're trying to move. t := val.Type.ElemType() - tmp = b.Func.fe.Auto(t) + tmp = b.Func.fe.Auto(val.Pos, t) aux := &AutoSymbol{Typ: t, Node: tmp} mem = b.NewValue1A(pos, OpVarDef, TypeMem, tmp, mem) tmpaddr := b.NewValue1A(pos, OpAddr, t.PtrTo(), aux, sp) |