[all-commits] [llvm/llvm-project] 9c99e9: [BOLT] Fix a bug related to iterators in ReorderDa...
sinan via All-commits
all-commits at lists.llvm.org
Wed Aug 30 20:15:55 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9c99e9fd684f222f6102090ae3e7f54f053909a3
https://github.com/llvm/llvm-project/commit/9c99e9fd684f222f6102090ae3e7f54f053909a3
Author: Sinan Lin <sinan.lin at linux.alibaba.com>
Date: 2023-08-31 (Thu, 31 Aug 2023)
Changed paths:
M bolt/lib/Passes/ReorderData.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list