mirror of https://github.com/golang/go.git
runtime: remove useless nil checking during init of itab
Change-Id: I8ef12221e18e163b695d88f4bb8c309763341ec3
GitHub-Last-Rev: d3d4d4cb79
GitHub-Pull-Request: golang/go#64107
Reviewed-on: https://go-review.googlesource.com/c/go/+/542116
Auto-Submit: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Keith Randall <khr@google.com>
This commit is contained in:
parent
e21dc702d5
commit
e7d582b55d
|
|
@ -225,14 +225,12 @@ imethods:
|
||||||
pkgPath = rtyp.nameOff(x.PkgPath).Name()
|
pkgPath = rtyp.nameOff(x.PkgPath).Name()
|
||||||
}
|
}
|
||||||
if tname.IsExported() || pkgPath == ipkg {
|
if tname.IsExported() || pkgPath == ipkg {
|
||||||
if m != nil {
|
|
||||||
ifn := rtyp.textOff(t.Ifn)
|
ifn := rtyp.textOff(t.Ifn)
|
||||||
if k == 0 {
|
if k == 0 {
|
||||||
fun0 = ifn // we'll set m.fun[0] at the end
|
fun0 = ifn // we'll set m.fun[0] at the end
|
||||||
} else {
|
} else {
|
||||||
methods[k] = ifn
|
methods[k] = ifn
|
||||||
}
|
}
|
||||||
}
|
|
||||||
continue imethods
|
continue imethods
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue