[clang] [analyzer][NFC] Remove padding from MemRegion and SymExpr (PR #246313)
Gábor Horváth via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 26 03:24:19 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;
----------------
Xazax-hun wrote:
We do, Clang's binary operator uses 6, unary is 5. And we also have the space :)
https://github.com/llvm/llvm-project/pull/246313
More information about the cfe-commits
mailing list