aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/malloc.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2017-09-18 23:29:46 -0700
committerMatthew Dempsky <mdempsky@google.com>2017-09-20 18:11:52 +0000
commit39983cf491aef22579d993b59a4dffedb190666a (patch)
tree555144310290118430b9878eb086dc570c34bd72 /src/runtime/malloc.go
parente06a64a4768445f2fcea1cb6b5a04abe0c4d9d12 (diff)
downloadgo-39983cf491aef22579d993b59a4dffedb190666a.tar.xz
cmd/compile: refactor onebitwalktype1
The existing logic tried to advance the offset for each variable's width, but then tried to undo this logic with the array and struct handling code. It can all be much simpler by only worrying about computing offsets within the array and struct code. While here, include a short-circuit for zero-width arrays to fix a pedantic compiler failure case. Passes toolstash-check. Fixes #20739. Change-Id: I98af9bb512a33e3efe82b8bf1803199edb480640 Reviewed-on: https://go-review.googlesource.com/64471 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src/runtime/malloc.go')
0 files changed, 0 insertions, 0 deletions