Files
clang-p2996/bolt/lib/Passes/ReorderData.cpp
Sinan Lin 9c99e9fd68 [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
2023-08-31 11:10:25 +08:00

17 KiB