[BOLT] Fixup for commit 137c378/#125961

This commit is contained in:
Maksim Panchenko 2025-02-06 00:25:48 -08:00
parent 0cfb98f871
commit 3115278c4e

View File

@ -491,9 +491,9 @@ void BinaryFunction::print(raw_ostream &OS, std::string Annotation) {
// Offset of the instruction in function.
uint64_t Offset = 0;
auto printConstantIslandInRange = [&](uint64_t Offset, uint64_t Size) {
std::optional<uint64_t> IslandOffset =
getIslandInRange(Offset, Offset + Size);
auto printConstantIslandInRange = [&](uint64_t Start, uint64_t End) {
assert(Start <= End && "Invalid range");
std::optional<uint64_t> IslandOffset = getIslandInRange(Start, End);
if (!IslandOffset)
return;