]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: repair copy-pasted method comment
authorDavid Chase <drchase@google.com>
Wed, 10 May 2017 17:50:19 +0000 (13:50 -0400)
committerDavid Chase <drchase@google.com>
Wed, 10 May 2017 19:30:42 +0000 (19:30 +0000)
Inadvertent copy-pasta in CL
https://go-review.googlesource.com/c/36207/

Is this allowed for 1.9 post-freeze?

Change-Id: I00dd27f9f53babeded3695346986a7a491f8a771
Reviewed-on: https://go-review.googlesource.com/43092
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/ssa/value.go

index ba5780fb9dd2aa2806be374121d1cc49f13666e1..a0ba112a8d4a43e97c4b238e8f99fee1e851b0d2 100644 (file)
@@ -224,7 +224,9 @@ func (v *Value) copyInto(b *Block) *Value {
        return c
 }
 
-// copyInto makes a new value identical to v and adds it to the end of b.
+// copyIntoNoXPos makes a new value identical to v and adds it to the end of b.
+// The copied value receives no source code position to avoid confusing changes
+// in debugger information (the intended user is the register allocator).
 func (v *Value) copyIntoNoXPos(b *Block) *Value {
        c := b.NewValue0(src.NoXPos, v.Op, v.Type) // Lose the position, this causes line number churn otherwise.
        c.Aux = v.Aux