[clang] [LifetimeSafety] Overhaul CFG and analysis to also work with trivially destructed temporary objects (PR #177985)

Utkarsh Saxena via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 3 14:47:45 PST 2026


================
@@ -2065,6 +2081,23 @@ void CFGBuilder::addScopeChangesHandling(LocalScope::const_iterator SrcPos,
   addAutomaticObjHandling(SrcPos, BasePos, S);
 }
 
+void CFGBuilder::addFullExprCleanupMarker(TempDtorContext &Context) {
+  assert(Context.TrackExpiringMTEs);
+
+  using MTEVecTy = BumpVector<const MaterializeTemporaryExpr *>;
----------------
usx95 wrote:

I think we can use `CFGFullExprCleanup::MTEVecTy` instead of redefining

https://github.com/llvm/llvm-project/pull/177985


More information about the cfe-commits mailing list