[llvm] [BOLT][AArch64] Check Last Element Instead of Returning `nullptr` in `lookupStubFromGroup` (PR #114015)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 10 18:55:41 PST 2024
================
@@ -130,9 +130,9 @@ BinaryBasicBlock *LongJmpPass::lookupStubFromGroup(
const std::pair<uint64_t, BinaryBasicBlock *> &RHS) {
return LHS.first < RHS.first;
});
- if (Cand == Candidates.end())
- return nullptr;
- if (Cand != Candidates.begin()) {
+ if (Cand == Candidates.end()) {
+ Cand = std::prev(Cand);
----------------
liusy58 wrote:
@paschalis-mpeis Hi, any update?
https://github.com/llvm/llvm-project/pull/114015
More information about the llvm-commits
mailing list