================
@@ -5125,6 +5156,8 @@ CFGBlock *CFGBuilder::VisitForTemporaryDtors(Stmt *E, 
bool ExternallyDestructed,
     case Stmt::MaterializeTemporaryExprClass: {
       const MaterializeTemporaryExpr* MTE = cast<MaterializeTemporaryExpr>(E);
       ExternallyDestructed = (MTE->getStorageDuration() != SD_FullExpression);
+      if (BuildOpts.AddLifetime && !ExternallyDestructed)
+        Context.track(MTE);
----------------
AbhinavPradeep wrote:

Nope that is an unnecessary check, will remove it. I had written `track` before 
thinking about the call sites so had a weaker precondition in mind.

https://github.com/llvm/llvm-project/pull/177985
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to