Skip to content
Commit 9c99e9fd authored by Sinan Lin's avatar Sinan Lin Committed by 杨桃
Browse files

[BOLT] Fix a bug related to iterators in ReorderData pass

If `Itr` is the last element and then `std::next(Itr)` will be
`Range.end()`, so that the statement `std::next(Itr)->second` is
a UB.

Reviewed By: yota9, maksfb

Differential Revision: https://reviews.llvm.org/D159177
parent 39f6a31e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment