diff options
| author | Nicholas <45984215+liusy58@users.noreply.github.com> | 2024-12-16 20:14:11 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-16 12:14:11 +0000 |
| commit | 671095b452365826b1ccb65483d6ae890a2a81f7 (patch) | |
| tree | 08fcad600de42b0e9e6d76334fab33594a306b79 /clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp | |
| parent | 03847f19f2e462a339e1afa1093f253ec8a23765 (diff) | |
| download | llvm-671095b452365826b1ccb65483d6ae890a2a81f7.zip llvm-671095b452365826b1ccb65483d6ae890a2a81f7.tar.gz llvm-671095b452365826b1ccb65483d6ae890a2a81f7.tar.bz2 | |
[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.
Diffstat (limited to 'clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp')
0 files changed, 0 insertions, 0 deletions
