]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: set OpLoad argument type interface{} correctly
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Mon, 23 Nov 2020 17:58:00 +0000 (00:58 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Tue, 24 Nov 2020 03:06:15 +0000 (03:06 +0000)
commit7dc5d909fb465345bf1583eb978aaa56ca365f38
tree9278347c34dbc18ebb208e76121ef1c9367a0522
parent762eda346a9f4062feaa8a9fc0d17d72b11586f0
cmd/compile: set OpLoad argument type interface{} correctly

CL 271906 allows loading single field of typed-interface{} OpIData, but
it does not update the corresponding selector type. So the generated
OpLoad has the named type instead, prevent it from being lowered by
lower pass.

Fixes #42784

Change-Id: Idf32e4f711731be09d508dd712b60bc8c58309bd
Reviewed-on: https://go-review.googlesource.com/c/go/+/272466
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: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/internal/ssa/expand_calls.go
test/fixedbugs/issue42784.go [new file with mode: 0644]