mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: convert nilcheck elim rules to typed aux
Passes toolstash-check. Change-Id: Ic7efb0e4778844366f581c6310a1a2f3bfc1868a Reviewed-on: https://go-review.googlesource.com/c/go/+/229686 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
b6f6259f2d
commit
47b5efad5d
3 changed files with 23 additions and 18 deletions
|
|
@ -373,6 +373,11 @@ func canMergeLoad(target, load *Value) bool {
|
|||
return true
|
||||
}
|
||||
|
||||
// symNamed reports whether sym's name is name.
|
||||
func symNamed(sym Sym, name string) bool {
|
||||
return sym.String() == name
|
||||
}
|
||||
|
||||
// isSameSym reports whether sym is the same as the given named symbol
|
||||
func isSameSym(sym interface{}, name string) bool {
|
||||
s, ok := sym.(fmt.Stringer)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue