diff options
author | Matthew Dempsky <mdempsky@google.com> | 2020-12-29 00:44:28 -0800 |
---|---|---|
committer | Matthew Dempsky <mdempsky@google.com> | 2020-12-29 09:12:55 +0000 |
commit | 171fc6f22388cc8628b5590f42d46a7c57277428 (patch) | |
tree | 6a334db138e62bf30457ffdac28d42f49d40707d /src/cmd/compile/internal/typecheck/iimport.go | |
parent | 33801cdc627bc4d3f7128d1076a1ac249da2e015 (diff) | |
download | go-171fc6f22388cc8628b5590f42d46a7c57277428.tar.gz go-171fc6f22388cc8628b5590f42d46a7c57277428.zip |
[dev.regabi] cmd/compile: remove workarounds for go/constant issues
These were fixed in CLs 273086 and 273126, which have been merged back
into dev.regabi already.
Passes toolstash -cmp.
Change-Id: I011e9ed7062bc034496a279e21cc163267bf83fd
Reviewed-on: https://go-review.googlesource.com/c/go/+/280643
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/typecheck/iimport.go')
-rw-r--r-- | src/cmd/compile/internal/typecheck/iimport.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/typecheck/iimport.go b/src/cmd/compile/internal/typecheck/iimport.go index 546ddcba79..86277e69bd 100644 --- a/src/cmd/compile/internal/typecheck/iimport.go +++ b/src/cmd/compile/internal/typecheck/iimport.go @@ -372,7 +372,7 @@ func (p *importReader) value(typ *types.Type) constant.Value { case constant.Int: var i big.Int p.mpint(&i, typ) - return makeInt(&i) + return constant.Make(&i) case constant.Float: return p.float(typ) case constant.Complex: |