aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/typecheck/func.go
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2020-11-28 12:55:01 -0800
committerKeith Randall <khr@golang.org>2020-12-29 18:05:07 +0000
commitb3e1ec97fd57d66eb1a1307b8c96141d0014ec51 (patch)
tree70c6f329a9467f6ad9a4d21f65278751e55848e9 /src/cmd/compile/internal/typecheck/func.go
parent0620c674ddca234e0a69b5a35c5fb06a881dd73b (diff)
downloadgo-b3e1ec97fd57d66eb1a1307b8c96141d0014ec51.tar.gz
go-b3e1ec97fd57d66eb1a1307b8c96141d0014ec51.zip
[dev.regabi] cmd/compile: move new addrtaken bit back to the old name
Change-Id: I2732aefe95a21c23d73a907d5596fcb1626d6dd7 Reviewed-on: https://go-review.googlesource.com/c/go/+/275697 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.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/typecheck/func.go b/src/cmd/compile/internal/typecheck/func.go
index 0819380885..75f38d588d 100644
--- a/src/cmd/compile/internal/typecheck/func.go
+++ b/src/cmd/compile/internal/typecheck/func.go
@@ -134,7 +134,7 @@ 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().SetAddrtaken2(true)
+ outermost.Name().SetAddrtaken(true)
outer = NodAddr(outer)
}