================
@@ -3544,6 +3544,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.
+ llvm::DenseMap<const EnumDecl *, llvm::SmallVector<llvm::APSInt, 64>>
----------------
erichkeane wrote:
IF you omit the size, SmallVector makes 'best guess', which is usually 4.
Probably worth just leaving it blank unless we have a REALLY good reason.
https://github.com/llvm/llvm-project/pull/176560
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits