[clang] [Clang] speed up -Wassign-enum via enumerator caching (PR #176560)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 21 03:57:02 PST 2026
================
@@ -3522,6 +3522,10 @@ class Sema final : public SemaBase {
/// attribute.
mutable llvm::DenseMap<const EnumDecl *, llvm::APInt> FlagBitsCache;
+ /// A cache of enumerator values for enums checked by -Wassign-enum.
+ mutable llvm::DenseMap<const EnumDecl *, llvm::SmallVector<llvm::APSInt, 64>>
----------------
Sirraide wrote:
I think we can just drop the `mutable`
https://github.com/llvm/llvm-project/pull/176560
More information about the cfe-commits
mailing list