[llvm] DynamicAPInt: optimize size of structure (PR #97831)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 5 08:33:24 PDT 2024
================
@@ -69,6 +73,9 @@ class SlowDynamicAPInt {
/// Overload to compute a hash_code for a SlowDynamicAPInt value.
friend hash_code hash_value(const SlowDynamicAPInt &X); // NOLINT
+ // Make DynamicAPInt a friend so it can access Val directly.
+ friend DynamicAPInt;
----------------
nikic wrote:
```suggestion
friend class DynamicAPInt;
```
https://github.com/llvm/llvm-project/pull/97831
More information about the llvm-commits
mailing list