aboutsummaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorThan McIntosh <thanm@google.com>2022-10-21 12:57:21 -0400
committerThan McIntosh <thanm@google.com>2022-10-21 19:42:51 +0000
commite43eebdab8a6df71e4b5262bcfb650ee8439870f (patch)
treec65a1c33dd90b3e740d2aafcb8a63144457ce96d /api
parent67403a30f61ac6af584796cdfd45c0d86820690c (diff)
downloadgo-e43eebdab8a6df71e4b5262bcfb650ee8439870f.tar.xz
cmd/cover: fix buglets in counter insertion
This patch has a couple of minor fixes to new-style counter insertion (noticed these problems while working on the fix for issue 56370). First, make sure that the function registration sequence (writing of nctrs, pkgid, funcid to counter var prolog) comes prior to the first counter update (they were reversed up to this point, due to an artifact of the way cmd/internal/edit operates). Second, fix up "per function" counter insertion mode (an experimental feature disabled by default that adds just a single counter to each function as opposed to one per basic block), which was failing to insert the single counter in the right place. Change-Id: Icfb613ca385647f35c0e52da2da8edeb2a506ab7 Reviewed-on: https://go-review.googlesource.com/c/go/+/444835 Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: David Chase <drchase@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Than McIntosh <thanm@google.com>
Diffstat (limited to 'api')
0 files changed, 0 insertions, 0 deletions