mirror of https://github.com/golang/go.git
[dev.regabi] cmd/compile: fix some methods error text
Change-Id: Ie9b034efba30d66a869c5e991b60c76198fd330f Reviewed-on: https://go-review.googlesource.com/c/go/+/279444 Run-TryBot: Baokun Lee <bk@golangcn.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
This commit is contained in:
parent
cb05a0aa6a
commit
b241938e04
|
|
@ -42,8 +42,8 @@ func eqCanPanic(t *types.Type) bool {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// AlgType is like algtype1, except it returns the fixed-width AMEMxx variants
|
// AlgType returns the fixed-width AMEMxx variants instead of the general
|
||||||
// instead of the general AMEM kind when possible.
|
// AMEM kind when possible.
|
||||||
func AlgType(t *types.Type) types.AlgKind {
|
func AlgType(t *types.Type) types.AlgKind {
|
||||||
a, _ := types.AlgType(t)
|
a, _ := types.AlgType(t)
|
||||||
if a == types.AMEM {
|
if a == types.AMEM {
|
||||||
|
|
|
||||||
|
|
@ -276,7 +276,7 @@ func FuncLinksym(n *ir.Name) *obj.LSym {
|
||||||
// the s·f stubs in s's package.
|
// the s·f stubs in s's package.
|
||||||
func NeedFuncSym(s *types.Sym) {
|
func NeedFuncSym(s *types.Sym) {
|
||||||
if !base.Ctxt.Flag_dynlink {
|
if !base.Ctxt.Flag_dynlink {
|
||||||
base.Fatalf("makefuncsym dynlink")
|
base.Fatalf("NeedFuncSym: dynlink")
|
||||||
}
|
}
|
||||||
if s.IsBlank() {
|
if s.IsBlank() {
|
||||||
return
|
return
|
||||||
|
|
|
||||||
|
|
@ -132,7 +132,7 @@ func AlgType(t *Type) (AlgKind, *Type) {
|
||||||
return ret, nil
|
return ret, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
base.Fatalf("algtype1: unexpected type %v", t)
|
base.Fatalf("algtype: unexpected type %v", t)
|
||||||
return 0, nil
|
return 0, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue