[all-commits] [llvm/llvm-project] 671095: [BOLT][AArch64] Check Last Element Instead of Retu...
Nicholas via All-commits
all-commits at lists.llvm.org
Mon Dec 16 04:14:33 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 671095b452365826b1ccb65483d6ae890a2a81f7
https://github.com/llvm/llvm-project/commit/671095b452365826b1ccb65483d6ae890a2a81f7
Author: Nicholas <45984215+liusy58 at users.noreply.github.com>
Date: 2024-12-16 (Mon, 16 Dec 2024)
Changed paths:
M bolt/lib/Passes/LongJmp.cpp
A bolt/test/AArch64/long-jmp-one-stub.s
Log Message:
-----------
[BOLT][AArch64] Check Last Element Instead of Returning `nullptr` in `lookupStubFromGroup` (#114015)
The current implementation of `lookupStubFromGroup` is incorrect. The
function is intended to find and return the closest stub using
`lower_bound`, which identifies the first element in a sorted range that
is not less than a specified value. However, if such an element is not
found within `Candidates` and the list is not empty, the function
returns `nullptr`. Instead, it should check whether the last element
satisfies the condition.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list