• Heschi Kreinick's avatar
    cmd/compile/internal/ssa: avoid accidental list ends · bff29f2d
    Heschi Kreinick authored
    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: 's avatarDavid Chase <drchase@google.com>
    bff29f2d
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...