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

Marcin Świderski marcin.sfider at gmail.com
Mon Nov 1 16:10:03 PDT 2010


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/8acb2137/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cfg-temp-obj-dtor.patch
Type: application/octet-stream
Size: 34507 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20101102/8acb2137/attachment.obj>


More information about the cfe-commits mailing list