Skip to content

Commit 0acfe84

Browse files
authored
[BOLT][DWARF] Fix output ranges for deleted code (#73464)
Set range low_pc to 0 for DIEs that correspond to deleted code. Fixes #73428
1 parent 35db35b commit 0acfe84

File tree

3 files changed

+917
-2
lines changed

3 files changed

+917
-2
lines changed

bolt/lib/Rewrite/DWARFRewriter.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -961,8 +961,7 @@ void DWARFRewriter::updateUnitDebugInfo(
961961
std::move(OutputRanges), CachedRanges);
962962
OutputRanges.clear();
963963
} else if (OutputRanges.empty()) {
964-
OutputRanges.push_back({RangesOrError.get().front().LowPC,
965-
RangesOrError.get().front().HighPC});
964+
OutputRanges.push_back({0, RangesOrError.get().front().HighPC});
966965
}
967966
} else if (!RangesOrError) {
968967
consumeError(RangesOrError.takeError());

0 commit comments

Comments
 (0)