[clang] [analyzer][NFC] Remove padding from MemRegion and SymExpr (PR #246313)
Balázs Benics via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 26 03:55:51 PST 2026
================
@@ -386,7 +390,9 @@ class UnarySymExpr final : public SymExpr {
/// Represents a symbolic expression involving a binary operator
class BinarySymExpr : public SymExpr {
- BinaryOperator::Opcode Op;
+ // Uses the tail padding of SymExpr.
+ LLVM_PREFERRED_TYPE(BinaryOperatorKind)
+ unsigned Op : 8;
----------------
steakhal wrote:
Yes, I figured. What I tried to incline is, should we split this and be explicit about having some free extra padding bits left here? Such that if the future we would need a few bits, we wouldn't just add extra bool flags to this class but reuse the free bits.
https://github.com/llvm/llvm-project/pull/246313
More information about the cfe-commits
mailing list