mirror of
https://github.com/intel/llvm.git
synced 2026-01-13 19:08:21 +08:00
[BOLT] Fix begin decrementing
Summary: Fix begin decrementing. (cherry picked from FBD20232474)
This commit is contained in:
committed by
Maksim Panchenko
parent
d89bb53afa
commit
b0cbb60165
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user