> If you check out CGExpr.cpp's EmitExprForReferenceBinding(), it handles all 
> of the cases where we can end up extending the lifetime of a temporary. I 
> suggest following that, rather than trying to halt an arbitrary 
> RecursiveASTVisitor.

There are lots of cases :-(
I decided to try to refactor and share the code. While it works, I
don't have a good name for the auxiliary functions.

I have split the patch in 3 to try to make it easier to see what is going on.

>         - Doug

Cheers,
Rafael

Attachment: t1.patch
Description: Binary data

Attachment: t2.patch
Description: Binary data

Attachment: t3.patch
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to