summaryrefslogtreecommitdiff
path: root/src/ir/bits.h
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2020-07-01 11:27:16 -0700
committerGitHub <noreply@github.com>2020-07-01 11:27:16 -0700
commitde9f46eb7d6ab13671019335d3dc5bd98179431c (patch)
tree9f49fbeccd200a1aee7692365577fe1fe99fffdd /src/ir/bits.h
parentca89a9f2f59e991ea1a3341bd4a567b043699eb8 (diff)
downloadbinaryen-de9f46eb7d6ab13671019335d3dc5bd98179431c.tar.gz
binaryen-de9f46eb7d6ab13671019335d3dc5bd98179431c.tar.bz2
binaryen-de9f46eb7d6ab13671019335d3dc5bd98179431c.zip
DWARF: Never emit (0, 0) to mean an empty span in debug_loc (#2940)
After mapping to the new positions, and after relativizing to the base, if we end up with (0, 0) then we must emit something else, as that would be interpreted as the end of a list. As it is an empty span, the actual value doesn't matter, it just has to be != 0. This can happen if the very first span in a compile unit is an empty span, in which case relative to the base of the compile unit we would have (0, 0).
Diffstat (limited to 'src/ir/bits.h')
0 files changed, 0 insertions, 0 deletions