[clang] [clang] Implement constexpr heap allocation alignments (PR #174549)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 15 09:58:17 PDT 2026
================
@@ -63,30 +64,48 @@ class TypeInfoLValue {
/// Symbolic representation of a dynamic allocation.
class DynamicAllocLValue {
- unsigned Index;
+ // lower NumAlignmentBits: alignment exponent
+ // remaining bits: allocation index incremented by one
+ // value of zero indicates distinct empty state
+ unsigned AlignAndIndex;
----------------
efriedma-quic wrote:
Does carving out bits like this actually save any space? DynamicAllocLValue is stored in a PointerUnion anyway.
https://github.com/llvm/llvm-project/pull/174549
More information about the cfe-commits
mailing list