]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.unified] cmd/compile: plumb rtype through for OMAPLIT
authorMatthew Dempsky <mdempsky@google.com>
Tue, 21 Jun 2022 09:29:49 +0000 (02:29 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 23 Jun 2022 21:52:53 +0000 (21:52 +0000)
commit3d432b6c4b86a5fcd1ccce0f914193b8e0e9e79e
tree1e1d4e6f45323123c5271a010efc135da75a0f27
parent7368647ac6eecd57a476616ff1f3ac1aa7f445b6
[dev.unified] cmd/compile: plumb rtype through for OMAPLIT

OMAPLIT gets lowered into a bunch of OINDEXMAP operations, which in
general may require a *runtime._type argument. This CL adds
CompLitExpr.RType, updates the GOEXPERIMENT=unified frontend to start
setting it, and updates walk to propagate it through to any generated
OINDEXMAP operations.

Change-Id: I278e7e8e615ea6d01f65a5eba6d6fc8e00045735
Reviewed-on: https://go-review.googlesource.com/c/go/+/413360
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/ir/expr.go
src/cmd/compile/internal/noder/reader.go
src/cmd/compile/internal/reflectdata/helpers.go
src/cmd/compile/internal/walk/complit.go
src/cmd/compile/internal/walk/order.go