]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: Revert "cmd/compile/internal/types2: remove most asX converters (cleanup)"
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Mon, 8 Nov 2021 17:34:18 +0000 (00:34 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Mon, 8 Nov 2021 18:06:16 +0000 (18:06 +0000)
commit5e6475598c4c78fe5404ea273041552e65463a21
tree4ded3ffbe290a375ca4ed2808877c7acadf54826
parent2e210b41ea5ca2fd3dcac5bc24ea932c2cac1234
cmd/compile: Revert "cmd/compile/internal/types2: remove most asX converters (cleanup)"

This reverts commit 759eaa22adb0ab883959e4a36c19f2dfe77b5895.

Reason to revert: break unified IR builder

Though the unified IR is not for go1.18, it's the only user of types2
lazy resolution APIs at this moment. And it consistently failed after
CL 362254 is the sign that the change was wrong somehow.

Change-Id: I6bfc3192904fe2129fd3c165f0df8761e8eb441c
Reviewed-on: https://go-review.googlesource.com/c/go/+/361964
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
13 files changed:
src/cmd/compile/internal/types2/assignments.go
src/cmd/compile/internal/types2/builtins.go
src/cmd/compile/internal/types2/call.go
src/cmd/compile/internal/types2/context.go
src/cmd/compile/internal/types2/conversions.go
src/cmd/compile/internal/types2/expr.go
src/cmd/compile/internal/types2/index.go
src/cmd/compile/internal/types2/lookup.go
src/cmd/compile/internal/types2/predicates.go
src/cmd/compile/internal/types2/sizes.go
src/cmd/compile/internal/types2/type.go
src/cmd/compile/internal/types2/typestring.go
src/cmd/compile/internal/types2/typexpr.go