]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.regabi] cmd/compile: merge OBLOCK and OEMPTY
authorRuss Cox <rsc@golang.org>
Tue, 1 Dec 2020 02:56:24 +0000 (21:56 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 2 Dec 2020 20:12:47 +0000 (20:12 +0000)
commitec5f349b2291fa3c0a30d8859c84f7476a1d14a2
tree2c24dd998ab4e692d26d4da53984bec4185e184c
parentc769d393de3d735d32aa9c8917afcd0394e5ac57
[dev.regabi] cmd/compile: merge OBLOCK and OEMPTY

OEMPTY is an empty *statement*, but it confusingly
gets handled as an expression in a few places.
More confusingly, OEMPTY often has an init list,
making it not empty at all. Replace uses and analysis
of OEMPTY with OBLOCK instead.

Passes buildall w/ toolstash -cmp.

Change-Id: I8d4fcef151e4f441fa19b1b96da5272d778131d6
Reviewed-on: https://go-review.googlesource.com/c/go/+/274594
Trust: Russ Cox <rsc@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
13 files changed:
src/cmd/compile/internal/gc/escape.go
src/cmd/compile/internal/gc/iexport.go
src/cmd/compile/internal/gc/iimport.go
src/cmd/compile/internal/gc/init.go
src/cmd/compile/internal/gc/inl.go
src/cmd/compile/internal/gc/noder.go
src/cmd/compile/internal/gc/order.go
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/gc/typecheck.go
src/cmd/compile/internal/gc/walk.go
src/cmd/compile/internal/ir/fmt.go
src/cmd/compile/internal/ir/node.go
src/cmd/compile/internal/ir/stmt.go