[llvm] [ADT] Simplify hash_combine (NFC) (PR #159938)

Jakub Kuderski via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 20 18:19:07 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:

do we need this? Isn't it always the end of `buffer`?

https://github.com/llvm/llvm-project/pull/159938


More information about the llvm-commits mailing list