]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: mark go.itab.* symbols local earlier
authorMichael Hudson-Doyle <michael.hudson@canonical.com>
Fri, 28 Oct 2016 02:08:28 +0000 (15:08 +1300)
committerMichael Hudson-Doyle <michael.hudson@canonical.com>
Tue, 1 Nov 2016 21:00:18 +0000 (21:00 +0000)
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 <michael.hudson@canonical.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/cmd/compile/internal/gc/reflect.go

index 57192dec1cd9a2e282d1ea471251c385286d6704..26643c0250c881107bead4088f4db35882f4bcd8 100644 (file)
@@ -979,6 +979,7 @@ func itabname(t, itype *Type) *Node {
                Fatalf("itabname(%v, %v)", t, itype)
        }
        s := Pkglookup(t.tconv(FmtLeft)+","+itype.tconv(FmtLeft), itabpkg)
+       Linksym(s).Set(obj.AttrLocal, true)
        if s.Def == nil {
                n := newname(s)
                n.Type = Types[TUINT8]