[cfe-commits] [Review] Partial fix for PR 11645: put destructor calls before a return statement.

Ted Kremenek kremenek at apple.com
Tue Jan 17 11:45:08 PST 2012


On Tuesday, January 17, 2012 at 10:43 AM, Chandler Carruth wrote:
> A fine point, but an important one: "return SomeClass();" is not a full expression. It is a statement. The only full expression here is "SomeClass();". I think it is very natural to handle the full expression evaluation prior to handling the statement in the CFG. 
Excellent point. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120117/c4ce6e96/attachment.html>


More information about the cfe-commits mailing list