aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/sys_linux_arm64.s
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2019-05-31 16:58:44 +1000
committerAndrew Gerrand <adg@golang.org>2019-06-03 01:37:58 +0000
commit98100c56da0da1503e7612921eff821409aa6cce (patch)
tree391e06eb2476bfc0b59e22183c0a6d84f9744716 /src/runtime/sys_linux_arm64.s
parentce656af9b5d9acb817b4de5170a11a2c42ad2047 (diff)
downloadgo-98100c56da0da1503e7612921eff821409aa6cce.tar.xz
cmd/cover: fix counting of blocks split by goto statements
When adding coverage counters to a block, the block's statement list is mutated. CL 77150 removed the part where the mutated list is assigned back to its parent node; this was confusing ast.Walk, which would then lose its place and stop walking the current block, dropping counters in the process. This change has addCounters make a copy of the list before mutating it, so that the original list doesn't change under Walk's feet. Fix #32200 Change-Id: Ia3b67d8cee860ceb7caf8748cb7a80ff9c6276e0 Reviewed-on: https://go-review.googlesource.com/c/go/+/179581 Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'src/runtime/sys_linux_arm64.s')
0 files changed, 0 insertions, 0 deletions