mirror of https://github.com/golang/go.git
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:
parent
ee788dbae0
commit
5eb382fc08
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue