]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: remove special treatment for cover vars in initorder
authorThan McIntosh <thanm@google.com>
Tue, 30 May 2023 14:49:11 +0000 (10:49 -0400)
committerThan McIntosh <thanm@google.com>
Tue, 30 May 2023 19:03:02 +0000 (19:03 +0000)
commit5b603f79fb51e7be4c7d7d141c7615b9cdc58524
tree5afd534a39e7796f1ae5f86238fa1c450f99b3a5
parent89a3bb69cec781177d3967b557e0ce14b2b854f9
cmd/compile: remove special treatment for cover vars in initorder

This patch reverts a portion of the changes in CL 443715, specifically
the code in initorder that treats coverage counter variables as special
with respect to init order. The special casing is no longer needed
now after a change to the way coverage instrumention is done (the go and
cover cmds now make sure that coverage variables appear first in
the compilation order).

Updates #56293.

Change-Id: Idf803ff4c1a095e88d455a6adcd63991687eb288
Reviewed-on: https://go-review.googlesource.com/c/go/+/499216
Run-TryBot: Than McIntosh <thanm@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/pkginit/initorder.go