[llvm] [ADT] Simplify hash_combine (NFC) (PR #159938)
Jakub Kuderski via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 21 05:09:08 PDT 2025
================
@@ -483,8 +483,11 @@ namespace detail {
/// recursive combining of arguments used in hash_combine. It is particularly
/// useful at minimizing the code in the recursive calls to ease the pain
/// caused by a lack of variadic functions.
-struct hash_combine_recursive_helper {
+struct hash_combine_helper {
char buffer[64] = {};
+ char *buffer_ptr;
+ char *const buffer_end;
----------------
kuhar wrote:
I'd use `std::end(buffer)` then instead
https://github.com/llvm/llvm-project/pull/159938
More information about the llvm-commits
mailing list