Skip to content

Commit 3115278

Browse files
committed
[BOLT] Fixup for commit 137c378/#125961
1 parent 0cfb98f commit 3115278

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bolt/lib/Core/BinaryFunction.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -491,9 +491,9 @@ void BinaryFunction::print(raw_ostream &OS, std::string Annotation) {
491491
// Offset of the instruction in function.
492492
uint64_t Offset = 0;
493493

494-
auto printConstantIslandInRange = [&](uint64_t Offset, uint64_t Size) {
495-
std::optional<uint64_t> IslandOffset =
496-
getIslandInRange(Offset, Offset + Size);
494+
auto printConstantIslandInRange = [&](uint64_t Start, uint64_t End) {
495+
assert(Start <= End && "Invalid range");
496+
std::optional<uint64_t> IslandOffset = getIslandInRange(Start, End);
497497

498498
if (!IslandOffset)
499499
return;

0 commit comments

Comments
 (0)