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

Complete a TODO.

Change-Id: I1bd23f0be725c9dd81b8316a7abba1bceecc346f
This commit is contained in:
qiulaidongfeng 2023-09-09 16:05:59 +08:00
parent ee788dbae0
commit 51523084a3
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 {