diff options
author | Sinan Lin <sinan.lin@linux.alibaba.com> | 2023-08-31 11:01:39 +0800 |
---|---|---|
committer | 杨桃 <linsinan.lsn@alibaba-inc.com> | 2023-08-31 11:10:25 +0800 |
commit | 9c99e9fd684f222f6102090ae3e7f54f053909a3 (patch) | |
tree | c8d537c90b042c32853ec29c5752cf1173208f48 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 39f6a31eaa665b1a01305346092ed69f4b9f940a (diff) | |
download | llvm-9c99e9fd684f222f6102090ae3e7f54f053909a3.zip llvm-9c99e9fd684f222f6102090ae3e7f54f053909a3.tar.gz llvm-9c99e9fd684f222f6102090ae3e7f54f053909a3.tar.bz2 |
[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
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions