Skip to content

Commit

Permalink
[BOLT] Fix begin decrementing
Browse files Browse the repository at this point in the history
Summary: Fix begin decrementing.

(cherry picked from FBD20232474)
  • Loading branch information
Alexander Shaposhnikov authored and maksfb committed Mar 3, 2020
1 parent d89bb53 commit b0cbb60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bolt/src/BinaryContext.cpp
Expand Up @@ -888,7 +888,7 @@ BinaryContext::getBinaryDataContainingAddressImpl(uint64_t Address,
auto NI = BinaryDataMap.lower_bound(Address);
auto End = BinaryDataMap.end();
if ((NI != End && Address == NI->first && !IncludeEnd) ||
(NI-- != BinaryDataMap.begin())) {
((NI != BinaryDataMap.begin()) && (NI-- != BinaryDataMap.begin()))) {
if (NI->second->containsAddress(Address) ||
(IncludeEnd && NI->second->getEndAddress() == Address)) {
while (BestFit &&
Expand Down

0 comments on commit b0cbb60

Please sign in to comment.