Index: llvm/lib/DebugInfo/DWARF/DWARFDebugAranges.cpp =================================================================== --- llvm/lib/DebugInfo/DWARF/DWARFDebugAranges.cpp +++ llvm/lib/DebugInfo/DWARF/DWARFDebugAranges.cpp @@ -81,7 +81,7 @@ void DWARFDebugAranges::appendRange(uint64_t CUOffset, uint64_t LowPC, uint64_t HighPC) { - if (LowPC >= HighPC) + if (LowPC >= HighPC || LowPC == 0) return; Endpoints.emplace_back(LowPC, CUOffset, true); Endpoints.emplace_back(HighPC, CUOffset, false);