Skip to content

Commit

Permalink
Fix: don't deref a bad iterator when DSE from and to maps end at the …
Browse files Browse the repository at this point in the history
…same coordinate.
  • Loading branch information
Chris Smowton committed Jul 24, 2015
1 parent 346cc58 commit 98bf0a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llpe/main/DSE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ void DSEMapPointer::mergeStores(DSEMapPointer* mergeFrom, DSEMapPointer* mergeTo

const DSEMapEntry& fromEntry = fromit.value();

for(; toit.stop() <= fromit.stop(); ++toit) {
for(; toit != mergeTo->M->end() && toit.stop() <= fromit.stop(); ++toit) {

const DSEMapEntry& toEntry = toit.value();
uint64_t entrySize = toit.stop() - toit.start();
Expand Down

0 comments on commit 98bf0a6

Please sign in to comment.