aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/typecheck/iexport.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/iexport.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/iexport.go')
-rw-r--r--src/cmd/compile/internal/typecheck/iexport.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/typecheck/iexport.go b/src/cmd/compile/internal/typecheck/iexport.go
index 911d758083..b59a610cf7 100644
--- a/src/cmd/compile/internal/typecheck/iexport.go
+++ b/src/cmd/compile/internal/typecheck/iexport.go
@@ -749,6 +749,7 @@ func (w *exportWriter) exoticParam(f *types.Field) {
w.uint64(uint64(f.Offset))
w.exoticType(f.Type)
w.bool(f.IsDDD())
+ w.string(f.Note)
}
func (w *exportWriter) exoticSym(s *types.Sym) {
if s == nil {