]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/ir: add "never returns" func flag
authorThan McIntosh <thanm@google.com>
Tue, 1 Aug 2023 16:00:57 +0000 (12:00 -0400)
committerThan McIntosh <thanm@google.com>
Wed, 6 Sep 2023 18:29:16 +0000 (18:29 +0000)
commit3d62c76736717613c4a921e45f59d40190c0792e
tree4b93456ca2c9cf75022dd75b2aa52b52363f553e
parenta0c3a1b6769c9849577eb6426fdac39d40372307
cmd/compile/internal/ir: add "never returns" func flag

Add a flag to ir.Func's flags field to record whether a given function
is deemed to never return (e.g. always calls exit or panic or
equivalent on all control paths). So as to not increase the amount of
flag storage, this new flag replaces the existing "ExportInline" flag,
which is currently unused.

Change-Id: Idd336e47381048cfc995eda05faf8b62f06ba206
Reviewed-on: https://go-review.googlesource.com/c/go/+/518256
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/internal/ir/func.go