From 2142e20f50954b9b5085e9b9461efc318a3348c0 Mon Sep 17 00:00:00 2001 From: Igor Kudrin Date: Mon, 23 Dec 2019 18:00:55 +0700 Subject: [DWARF] Fix DWARFDebugAranges to support 64-bit CU offsets. DWARFContext, the only user of this class, can already handle such offsets. Differential Revision: https://reviews.llvm.org/D71834 --- llvm/lib/DebugInfo/DWARF/DWARFDebugAranges.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/DebugInfo') diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugAranges.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugAranges.cpp index ca6043109cd..fa157e86885 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFDebugAranges.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFDebugAranges.cpp @@ -113,10 +113,10 @@ void DWARFDebugAranges::construct() { Endpoints.shrink_to_fit(); } -uint32_t DWARFDebugAranges::findAddress(uint64_t Address) const { +uint64_t DWARFDebugAranges::findAddress(uint64_t Address) const { RangeCollIterator It = partition_point(Aranges, [=](Range R) { return R.HighPC() <= Address; }); if (It != Aranges.end() && It->LowPC <= Address) return It->CUOffset; - return -1U; + return -1ULL; } -- cgit v1.2.3