OSDN Git Service

[DWARFDebug] Fix another case of overlapping ranges
authorKeno Fischer <kfischer@college.harvard.edu>
Wed, 3 Feb 2016 21:13:33 +0000 (21:13 +0000)
committerKeno Fischer <kfischer@college.harvard.edu>
Wed, 3 Feb 2016 21:13:33 +0000 (21:13 +0000)
commit7119b269cddb0f0ac316f6f256cb6d0b32823d5d
treea869345b5f6a6c595a26b90c5a551c6fb82c4b1c
parent888a66d966802a5852fa77c79ca7da6ff4fa4189
[DWARFDebug] Fix another case of overlapping ranges

Summary:
In r257979, I added code to ensure that we wouldn't merge DebugLocEntries if
the pieces they describe overlap. Unfortunately, I failed to cover the case,
where there may have multiple active Expressions in the entry, in which case we
need to make sure that no two values overlap before we can perform the merge.

This fixed PR26148.

Reviewers: aprantl
Differential Revision: http://reviews.llvm.org/D16742

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259696 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
test/DebugInfo/X86/PR26148.ll [new file with mode: 0644]