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

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 20 18:22:47 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;
----------------
kazutakahirata wrote:

No, we don't need it strictly speaking.  Yes, it always points to the end of buffer.  It's merely for convenience.

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


More information about the llvm-commits mailing list