aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/error.go
diff options
context:
space:
mode:
authorHeschi Kreinick <heschi@google.com>2018-02-28 16:32:11 -0500
committerHeschi Kreinick <heschi@google.com>2018-03-01 22:03:37 +0000
commitbff29f2d1798cb0c8b6a4a8440c076f4b9460158 (patch)
treea5f9f3c010d76e848c24d9836d9d5ba6fd0c0d3c /src/runtime/error.go
parent87736fc450c943ca3792406d7a47790091404255 (diff)
downloadgo-bff29f2d1798cb0c8b6a4a8440c076f4b9460158.tar.xz
cmd/compile/internal/ssa: avoid accidental list ends
Some SSA values don't translate into any instructions. If a function began with two of them, and both modified the storage of the same variable, we'd end up with a location list entry that started and ended at 0. That looks like an end-of-list entry, which would then confuse downstream tools, particularly the fixup in the linker. "Fix" this by changing the end of such entries to 1. Should be harmless, since AFAIK we don't generate any 1-byte instructions. Later CLs will reduce the frequency of these entries anyway. Change-Id: I9b7e5e69f914244cc826fb9f4a6acfe2dc695f81 Reviewed-on: https://go-review.googlesource.com/97955 Run-TryBot: Heschi Kreinick <heschi@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/runtime/error.go')
0 files changed, 0 insertions, 0 deletions