================
@@ -2019,7 +2016,9 @@ void 
CFGBuilder::addAutomaticObjDestruction(LocalScope::const_iterator B,
 
     // Add LifetimeEnd after automatic obj with non-trivial destructors,
     // as they end their lifetime when the destructor returns. For trivial
-    // objects, we end lifetime with scope end.
+    // objects, we end lifetime with scope end. Since the SCOPE_END CFG
+    // marker has the value of LifetimeEnds, the LifetimeEnds marker also
+    // covers trivial destructors and local variables. See #201123.
----------------
benedekaibas wrote:

Yes, I see the problem. I have rewritten the comment here: 
[e31be40](https://github.com/llvm/llvm-project/pull/243630/commits/e31be408d07194ecf6ba2b2443d0b8868626024d)

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

Reply via email to