Skip to content

Commit 477b7e5

Browse files
snyhbradfitz
authored andcommitted
cmd/internal/obj: remove pointless validation
s.Func.Text only can be nil at the moment, otherwise there has some bugs in compiler's Go rumtime. Change-Id: Ib2ff9bb977352838e67f2b98a69468f6f350c1f3 Reviewed-on: https://go-review.googlesource.com/123535 Reviewed-by: Brad Fitzpatrick <[email protected]> Run-TryBot: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 0fbaf6c commit 477b7e5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/cmd/internal/obj/plist.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,6 @@ func (ctxt *Link) InitTextSym(s *LSym, flag int) {
119119
ctxt.Diag("InitTextSym double init for %s", s.Name)
120120
}
121121
s.Func = new(FuncInfo)
122-
if s.Func.Text != nil {
123-
ctxt.Diag("duplicate TEXT for %s", s.Name)
124-
}
125122
if s.OnList() {
126123
ctxt.Diag("symbol %s listed multiple times", s.Name)
127124
}

0 commit comments

Comments
 (0)