================
@@ -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.
----------------
steakhal wrote:
claude says:
> The comment is now partly contradictory. It says "For trivial objects, we end
> lifetime with scope end", then adds that the marker also covers them. Rewrite
> it to say that LifetimeEnds is emitted for every variable here, in reverse
> declaration order.
https://github.com/llvm/llvm-project/pull/243630
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits