Skip to content

Commit 0ffb626

Browse files
committed
[BOLT][DWARF] Fix output ranges for deleted code
Set range low_pc to 0 for DIEs that correspond to deleted code. Fixes #73428
1 parent f4a4e2f commit 0ffb626

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
@@ -963,8 +963,7 @@ void DWARFRewriter::updateUnitDebugInfo(
963963
std::move(OutputRanges), CachedRanges);
964964
OutputRanges.clear();
965965
} else if (OutputRanges.empty()) {
966-
OutputRanges.push_back({RangesOrError.get().front().LowPC,
967-
RangesOrError.get().front().HighPC});
966+
OutputRanges.push_back({0, RangesOrError.get().front().HighPC});
968967
}
969968
} else if (!RangesOrError) {
970969
consumeError(RangesOrError.takeError());

0 commit comments

Comments
 (0)