aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/typecheck/iimport.go
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2021-04-20 14:29:53 -0700
committerKeith Randall <khr@golang.org>2021-04-20 22:39:22 +0000
commitc7d708e42ed4db9dd323899256d5666c5062e5ab (patch)
treea649a4401bbf387426d8502920dfebd315e23e20 /src/cmd/compile/internal/typecheck/iimport.go
parentf448cb8ba83be1055cc73101e0c217c2a503c8ad (diff)
downloadgo-c7d708e42ed4db9dd323899256d5666c5062e5ab.tar.gz
go-c7d708e42ed4db9dd323899256d5666c5062e5ab.zip
cmd/compile: pass struct field note information along in exported info
This is needed to make field tracking work correctly. Change-Id: I0c3452a48d6f36862f6ee8aacc001813866c0ad4 Reviewed-on: https://go-review.googlesource.com/c/go/+/312069 Trust: Keith Randall <khr@golang.org> Run-TryBot: Keith Randall <khr@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/typecheck/iimport.go')
-rw-r--r--src/cmd/compile/internal/typecheck/iimport.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/typecheck/iimport.go b/src/cmd/compile/internal/typecheck/iimport.go
index c55e3fbe2a..53576bf725 100644
--- a/src/cmd/compile/internal/typecheck/iimport.go
+++ b/src/cmd/compile/internal/typecheck/iimport.go
@@ -592,6 +592,7 @@ func (r *importReader) exoticParam() *types.Field {
f.Nname = ir.NewNameAt(pos, sym)
}
f.SetIsDDD(ddd)
+ f.Note = r.string()
return f
}