[dsymutil] Do not crash on empty debug_range range.
authorFrederic Riss <friss@apple.com>
Mon, 31 Aug 2015 05:09:32 +0000 (05:09 +0000)
committerFrederic Riss <friss@apple.com>
Mon, 31 Aug 2015 05:09:32 +0000 (05:09 +0000)
commit9be5804a892d7027bd46045cbe3348fe62dfa1aa
tree116fd48f141aec1d6c700caae91088e4f101acea
parenta4d4495cfa703e90f4dfe70c8c8c8703023d2a70
[dsymutil] Do not crash on empty debug_range range.

The fix is trivial (The actual patch is 2 lines, but as it changes
indentation it looks like more).
clang does not produce this kind of (slightly bogus) debug info
anymore, thus I had to rely on a hand-crafted assembly test to trigger
that case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246410 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/dsymutil/Inputs/empty_range/1.o [new file with mode: 0644]
test/tools/dsymutil/X86/empty_range.s [new file with mode: 0644]
test/tools/dsymutil/X86/lit.local.cfg
tools/dsymutil/DwarfLinker.cpp