Fix a bug in the IRMemoryMap which generated bogus allocations.
authorZachary Turner <zturner@google.com>
Wed, 25 Jun 2014 18:37:19 +0000 (18:37 +0000)
committerZachary Turner <zturner@google.com>
Wed, 25 Jun 2014 18:37:19 +0000 (18:37 +0000)
commit15362445948550136a7e6a62e334ef943e832ce9
treeeee44abf9b4e85949c555b3711ac57ca04bcac61
parent9bea9cc73bd0e31fe8e332c6a9673068eaaca393
Fix a bug in the IRMemoryMap which generated bogus allocations.

Previously, only the starting locations of the candidate interval
and the existing interval were compared.  To correctly detect
range intersections, it is necessary to compare the entire range
of both intervals against each other.

Reviewed by: scallanan

Differential Revision: http://reviews.llvm.org/D4286

llvm-svn: 211726
lldb/include/lldb/Expression/IRMemoryMap.h
lldb/source/Expression/IRMemoryMap.cpp