[PATCH] An attempt at fixing lifetime extended temporaries in the CFG.

Manuel Klimek klimek at google.com
Wed Jul 30 01:42:28 PDT 2014


On Wed, Jul 30, 2014 at 5:07 AM, Jordan Rose <jordan_rose at apple.com> wrote:

> This mostly seems reasonable to me, except I wonder if we'll want to
> encode the path to the temporaries by something other than the expression
> where they were created. I can't remember when they're proper regions and
> when they're just values (LazyCompoundVals) in the analyzer, but we should
> be careful to be consistent about the region in which the constructor is
> run and the region in which the destructor is run.
>

Yea, I remember running into problems when trying to enable inlining of
temp dtors, but I'm not sure what exactly those were... It seems to me like
we need to model the regions for temporaries correctly anyway, if we ever
want to be able to inline the destructors of temporaries at the end of the
full-expression.

Cheers,
/Manuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140730/d16f28b8/attachment.html>


More information about the cfe-commits mailing list