Skip to content

Commit

Permalink
Try to fix issue #637
Browse files Browse the repository at this point in the history
Reference: #637
  • Loading branch information
seviezhou authored and PeterMatula committed Sep 10, 2019
1 parent 63f03e7 commit 517298b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/bin2llvmir/optimizations/decoder/ir_modifications.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,9 @@ bool Decoder::canSplitFunctionOn(
continue;
}
auto up = fncStarts.upper_bound(bAddr);
if (up == fncStarts.begin()) {
return false;
}
--up;
Address bFnc = *up;

Expand All @@ -442,6 +445,9 @@ bool Decoder::canSplitFunctionOn(
continue;
}
auto up = fncStarts.upper_bound(pAddr);
if (up == fncStarts.begin()) {
return false;
}
--up;
Address pFnc = *up;

Expand Down

0 comments on commit 517298b

Please sign in to comment.