diff options
author | cuiweixie <cuiweixie@gmail.com> | 2023-06-20 13:58:56 +0800 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2023-06-21 11:12:48 +0000 |
commit | 413e6c0499cfc29a0306ebc27160eca32882089c (patch) | |
tree | 63fb0c93767f7ff4eef7b485e6300337160a6cc0 | |
parent | f3bf18117b284b63f4350a5aa61773a30d91a6d5 (diff) | |
download | go-413e6c0499cfc29a0306ebc27160eca32882089c.tar.gz go-413e6c0499cfc29a0306ebc27160eca32882089c.zip |
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>
-rw-r--r-- | src/cmd/compile/internal/ir/node.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/ir/node.go b/src/cmd/compile/internal/ir/node.go index 7f8ca023f2..769340e9cd 100644 --- a/src/cmd/compile/internal/ir/node.go +++ b/src/cmd/compile/internal/ir/node.go @@ -52,7 +52,6 @@ type Node interface { // 0 means the node is not typechecked // 1 means the node is completely typechecked // 2 means typechecking of the node is in progress - // 3 means the node has its type from types2, but may need transformation Typecheck() uint8 SetTypecheck(x uint8) NonNil() bool |