================ @@ -45,6 +51,19 @@ class ExprMutationAnalyzer { using MutationFinder = const Stmt *(ExprMutationAnalyzer::*)(const Expr *); using ResultMap = llvm::DenseMap<const Expr *, const Stmt *>; + ExprMutationAnalyzer(const Stmt &Stm, ASTContext &Context, Cache *ParentCache) + : Stm(Stm), Context(Context) { + if (ParentCache != nullptr) { + CrossAnalysisCache = ParentCache; + } else { + CrossAnalysisCache = std::make_unique<Cache>(); + } ---------------- PiotrZSL wrote:
maybe better use shared_ptr instead of this mess with variant. https://github.com/llvm/llvm-project/pull/87954 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits