mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: move Node.Typecheck to flags
Change-Id: Id5aa4a1499068bf2d3497b21d794f970b7e47fdf Reviewed-on: https://go-review.googlesource.com/41795 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
e2560ace3c
commit
502a03ffcf
13 changed files with 67 additions and 64 deletions
|
|
@ -752,7 +752,7 @@ func (s *typeSwitch) walk(sw *Node) {
|
|||
// Load hash from type or itab.
|
||||
h := nodSym(ODOTPTR, itab, nil)
|
||||
h.Type = types.Types[TUINT32]
|
||||
h.Typecheck = 1
|
||||
h.SetTypecheck(1)
|
||||
if cond.Right.Type.IsEmptyInterface() {
|
||||
h.Xoffset = int64(2 * Widthptr) // offset of hash in runtime._type
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue