cmd/compile/internal/typecheck: use constant.MakeUnknown()

Complete a TODO.

Change-Id: I1bd23f0be725c9dd81b8316a7abba1bceecc346f

Change-Id: I1bd23f0be725c9dd81b8316a7abba1bceecc346f
GitHub-Last-Rev: 51523084a3
GitHub-Pull-Request: golang/go#62553
Reviewed-on: https://go-review.googlesource.com/c/go/+/527178
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
qiulaidongfeng 2023-09-10 04:33:34 +00:00 committed by Gopher Robot
parent ee788dbae0
commit 5eb382fc08
1 changed files with 1 additions and 2 deletions

View File

@ -305,8 +305,7 @@ func toint(v constant.Value) constant.Value {
}
// Prevent follow-on errors.
// TODO(mdempsky): Use constant.MakeUnknown() instead.
return constant.MakeInt64(1)
return constant.MakeUnknown()
}
func tostr(v constant.Value) constant.Value {