diff options
Diffstat (limited to 'lldb/source/Expression/IRMemoryMap.cpp')
-rw-r--r-- | lldb/source/Expression/IRMemoryMap.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lldb/source/Expression/IRMemoryMap.cpp b/lldb/source/Expression/IRMemoryMap.cpp index aff4b16f65d..268fe3c09b2 100644 --- a/lldb/source/Expression/IRMemoryMap.cpp +++ b/lldb/source/Expression/IRMemoryMap.cpp @@ -87,10 +87,8 @@ IRMemoryMap::FindAllocation (lldb::addr_t addr, size_t size) { AllocationMap::iterator iter = m_allocations.lower_bound (addr); - if (iter == m_allocations.end()) - return iter; - - if (iter->first > addr) + if (iter == m_allocations.end() || + iter->first > addr) { if (iter == m_allocations.begin()) return m_allocations.end(); |