From: cuiweixie Date: Tue, 20 Jun 2023 05:58:56 +0000 (+0800) Subject: cmd/compile/internal/ir: typo X-Git-Tag: go1.21rc3~2^2~81 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=413e6c0499;p=gostls13.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 Reviewed-by: Matthew Dempsky Reviewed-by: Dmitri Shuralyov Run-TryBot: Matthew Dempsky Auto-Submit: Matthew Dempsky --- 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