mirror of https://github.com/golang/go.git
cmd/compile/internal/typecheck: use constant.MakeUnknown()
Complete a TODO. Change-Id: I1bd23f0be725c9dd81b8316a7abba1bceecc346f
This commit is contained in:
parent
ee788dbae0
commit
51523084a3
|
|
@ -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