aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThan McIntosh <thanm@google.com>2021-02-26 09:25:22 -0500
committerMatthew Dempsky <mdempsky@google.com>2021-03-01 20:00:13 +0000
commitf6a74c656837fcb0ea04e7b605ccdce7d10c45db (patch)
treebbeb93aabd486c8bb7cecbf610f209797daf4d6f
parent87beecd6dfd3b12ed30785ec502f7380dc79ec29 (diff)
downloadgo-f6a74c656837fcb0ea04e7b605ccdce7d10c45db.tar.gz
go-f6a74c656837fcb0ea04e7b605ccdce7d10c45db.zip
cmd/compile/internal/ir: fix up stale comment
Fix a small stale comment in FinishCaptureNames (refers to old code structure before the big refactoring). Change-Id: I2dfb84ce238f919f6e17061439a8bd9b09459dae Reviewed-on: https://go-review.googlesource.com/c/go/+/296829 Trust: Than McIntosh <thanm@google.com> Run-TryBot: Than McIntosh <thanm@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
-rw-r--r--src/cmd/compile/internal/ir/name.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/ir/name.go b/src/cmd/compile/internal/ir/name.go
index 6240852aaf..035c9cd3d0 100644
--- a/src/cmd/compile/internal/ir/name.go
+++ b/src/cmd/compile/internal/ir/name.go
@@ -398,7 +398,7 @@ func FinishCaptureNames(pos src.XPos, outerfn, fn *Func) {
// unhook them.
// make the list of pointers for the closure call.
for _, cv := range fn.ClosureVars {
- // Unlink from n; see comment in syntax.go type Param for these fields.
+ // Unlink from n; see comment above on type Name for these fields.
n := cv.Defn.(*Name)
n.Innermost = cv.Outer