mirror of https://github.com/golang/go.git
cmd/compile/internal/ir: typo
n.TypeCheck() == 3 is never true now, in n.SetTypecheck(x), when x > 2, it panic. Change-Id: Ic876680435d4536eb63dcedee20a07ccdf918b91 Reviewed-on: https://go-review.googlesource.com/c/go/+/504435 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Run-TryBot: Matthew Dempsky <mdempsky@google.com> Auto-Submit: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
f3bf18117b
commit
413e6c0499
|
|
@ -52,7 +52,6 @@ type Node interface {
|
||||||
// 0 means the node is not typechecked
|
// 0 means the node is not typechecked
|
||||||
// 1 means the node is completely typechecked
|
// 1 means the node is completely typechecked
|
||||||
// 2 means typechecking of the node is in progress
|
// 2 means typechecking of the node is in progress
|
||||||
// 3 means the node has its type from types2, but may need transformation
|
|
||||||
Typecheck() uint8
|
Typecheck() uint8
|
||||||
SetTypecheck(x uint8)
|
SetTypecheck(x uint8)
|
||||||
NonNil() bool
|
NonNil() bool
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue