mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-12 09:41:26 +00:00
3456b2f60a
This makes __debug_three_way_comp consistent with __debug_less and in particular gets rid of a potential use-after-move caused by the use of std::forward. In the previous version of the code, we would call `__do_compare_assert` after forwarding the arguments into the comparator, which could end up using the arguments after they've been moved from. This also simplifies how we call `__do_compare_assert` by using `if constexpr` and adds a missing test for proxy iterators in lexicographical_compare_three_way, which could have found this issue. Differential Revision: https://reviews.llvm.org/D152753 |
||
---|---|---|
.. | ||
benchmarks | ||
cmake | ||
docs | ||
include | ||
lib | ||
modules | ||
src | ||
test | ||
utils | ||
.clang-format | ||
.clang-tidy | ||
.gitignore | ||
appveyor-reqs-install.cmd | ||
appveyor.yml | ||
CMakeLists.txt | ||
CREDITS.TXT | ||
LICENSE.TXT | ||
TODO.TXT |