[cfe-commits] [PATCH] CFG destructors for temporaries

Zhongxing Xu xuzhongxing at gmail.com
Mon Nov 1 23:17:10 PDT 2010


Looks great to me.

2010/11/2 Marcin Świderski <marcin.sfider at gmail.com>

> Hi
>
> Patch adds generating destructors for temporary objects. Two cases I know
> of, that are not handled properly:
> 1. For statement: const C& c = C(0) ?: C(1) destructors generated for
> condition will not differ from those generated for case without prolonged
> lifetime of temporary,
> 2. There will be no destructor for constant reference member bound to
> temporary at the exit from constructor.
>
> Please review and approve for commit.
>
> - Marcin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20101102/f63fee4e/attachment.html>


More information about the cfe-commits mailing list