aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/MathExtrasTest.cpp
diff options
context:
space:
mode:
authorBalazs Benics <benicsbalazs@gmail.com>2025-09-11 16:48:53 +0200
committerGitHub <noreply@github.com>2025-09-11 16:48:53 +0200
commit38b948bd4b9bd0ed532c3bea69e0038b3dffe80a (patch)
treeb852969bdc6f9c759b23f4380a3d2e2808f357b4 /llvm/unittests/Support/MathExtrasTest.cpp
parent343186deefcafdcf4e5a63e669a8ddc7ec9fd415 (diff)
downloadllvm-38b948bd4b9bd0ed532c3bea69e0038b3dffe80a.zip
llvm-38b948bd4b9bd0ed532c3bea69e0038b3dffe80a.tar.gz
llvm-38b948bd4b9bd0ed532c3bea69e0038b3dffe80a.tar.bz2
[analyzer] Revert #115918, so empty base class optimization works again (#157480)
Tldr; We can't unconditionally trivially copy empty classes because that would clobber the stored entries in the object that the optimized empty class overlaps with. This regression was introduced by #115918, which introduced other clobbering issues, like the handling of `[[no_unique_address]]` fields in #137252. Read issue #157467 for the detailed explanation, but in short, I'd propose reverting the original patch because these was a lot of problems with it for arguably not much gain. In particular, that patch was motivated by unifying the handling of classes so that copy events would be triggered for a class no matter if it had data members or not. So in hindsight, it was not worth it. I plan to backport this to clang-21 as well, and mention in the release notes that this should fix the regression from clang-20. PS: Also an interesting read [D43714](https://reviews.llvm.org/D43714) in hindsight. Fixes #157467 CPP-6574
Diffstat (limited to 'llvm/unittests/Support/MathExtrasTest.cpp')
0 files changed, 0 insertions, 0 deletions