Skip to content

Commit 4e584c5

Browse files
committed
cmd/compile: mark go.itab.* symbols local earlier
This feels a bit like a layering violation, but as the bug report shows it is sometimes necessary. Fixes #17642 Change-Id: I4ba060bb1ce73a527ce276e5a769c44692b50016 Reviewed-on: https://go-review.googlesource.com/32236 Run-TryBot: Michael Hudson-Doyle <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: David Crawshaw <[email protected]>
1 parent d0e4083 commit 4e584c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cmd/compile/internal/gc/reflect.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -979,6 +979,7 @@ func itabname(t, itype *Type) *Node {
979979
Fatalf("itabname(%v, %v)", t, itype)
980980
}
981981
s := Pkglookup(t.tconv(FmtLeft)+","+itype.tconv(FmtLeft), itabpkg)
982+
Linksym(s).Set(obj.AttrLocal, true)
982983
if s.Def == nil {
983984
n := newname(s)
984985
n.Type = Types[TUINT8]

0 commit comments

Comments
 (0)