From: Xia Bin Date: Thu, 12 Jul 2018 10:00:39 +0000 (+0800) Subject: cmd/internal/obj: remove pointless validation X-Git-Tag: go1.12beta1~1413 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=477b7e5f4d143c2e8d68e9ef9d4db8ebe84a8489;p=gostls13.git 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 Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- diff --git a/src/cmd/internal/obj/plist.go b/src/cmd/internal/obj/plist.go index 0658cc7311..a8675055d9 100644 --- a/src/cmd/internal/obj/plist.go +++ b/src/cmd/internal/obj/plist.go @@ -119,9 +119,6 @@ func (ctxt *Link) InitTextSym(s *LSym, flag int) { ctxt.Diag("InitTextSym double init for %s", s.Name) } s.Func = new(FuncInfo) - if s.Func.Text != nil { - ctxt.Diag("duplicate TEXT for %s", s.Name) - } if s.OnList() { ctxt.Diag("symbol %s listed multiple times", s.Name) }