[cfe-commits] Handle ExprWithCleanups when creating goto scopes

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Sep 17 14:03:05 PDT 2012


> The problem here, which I hadn't been thinking about before, is lifetime extension for temporaries. We actually have to dig into the initializer expression to find the, even when the variable type is a reference to a scalar type.

This patch uses a visitor to find the CXXConstructExpr, but it is not
clear to me all the cases where we have to stop the AST traverse.

>
>   - Doug

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 6758 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120917/49716d77/attachment.obj>


More information about the cfe-commits mailing list