[clang] [Modules] Record whether VarDecl initializers contain side effects (PR #143739)
Ben Langmuir via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 16 11:24:22 PDT 2025
================
@@ -1442,6 +1442,10 @@ class ASTReader
const StringRef &operator*() && = delete;
};
+ /// VarDecls with initializers containing side effects must be emitted,
+ /// but DeclMustBeEmitted is not allowed to deserialize the intializer.
+ llvm::SmallPtrSet<Decl *, 16> InitSideEffectVars;
----------------
benlangmuir wrote:
Not a big deal, but do we have any kind of data informing us how many of these we typically see?
https://github.com/llvm/llvm-project/pull/143739
More information about the cfe-commits
mailing list