summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBBlock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/API/SBBlock.cpp')
-rw-r--r--lldb/source/API/SBBlock.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/lldb/source/API/SBBlock.cpp b/lldb/source/API/SBBlock.cpp
index bc7392c11f9..5374a7f86ba 100644
--- a/lldb/source/API/SBBlock.cpp
+++ b/lldb/source/API/SBBlock.cpp
@@ -237,12 +237,7 @@ SBBlock::GetRangeIndexForBlockAddress (lldb::SBAddress block_addr)
{
if (m_opaque_ptr && block_addr.IsValid())
{
- uint32_t range_idx = UINT32_MAX;
- AddressRange range;
- if (m_opaque_ptr->GetRangeContainingAddress (block_addr.ref(), range, &range_idx))
- {
- return range_idx;
- }
+ return m_opaque_ptr->GetRangeIndexContainingAddress (block_addr.ref());
}
return UINT32_MAX;
OpenPOWER on IntegriCloud