diff options
author | Keith Randall <khr@golang.org> | 2020-11-28 12:37:55 -0800 |
---|---|---|
committer | Keith Randall <khr@golang.org> | 2020-12-29 18:04:37 +0000 |
commit | 0620c674ddca234e0a69b5a35c5fb06a881dd73b (patch) | |
tree | e945f8b7fe62997665b68676bfd1ffc4eb655575 /src/cmd/compile/internal/typecheck/func.go | |
parent | 0523d525ae0dea229cffc5634caddd0acbc066af (diff) | |
download | go-0620c674ddca234e0a69b5a35c5fb06a881dd73b.tar.gz go-0620c674ddca234e0a69b5a35c5fb06a881dd73b.zip |
[dev.regabi] cmd/compile: remove original addrtaken bit
Switch the source of truth to the new addrtaken bit. Remove the old one.
Change-Id: Ie53679ab14cfcd34b55e912e7ecb962a22db7db3
Reviewed-on: https://go-review.googlesource.com/c/go/+/275696
Trust: Keith Randall <khr@golang.org>
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dan Scales <danscales@google.com>
Diffstat (limited to 'src/cmd/compile/internal/typecheck/func.go')
-rw-r--r-- | src/cmd/compile/internal/typecheck/func.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/typecheck/func.go b/src/cmd/compile/internal/typecheck/func.go index ce6f4027da..0819380885 100644 --- a/src/cmd/compile/internal/typecheck/func.go +++ b/src/cmd/compile/internal/typecheck/func.go @@ -134,7 +134,6 @@ func CaptureVars(fn *ir.Func) { if outermost.Class_ != ir.PPARAMOUT && !outermost.Name().Addrtaken() && !outermost.Name().Assigned() && v.Type().Width <= 128 { v.SetByval(true) } else { - outermost.Name().SetAddrtaken(true) outermost.Name().SetAddrtaken2(true) outer = NodAddr(outer) } |