[PATCH] Have 'this'-returning constructors and destructors to take advantage of the new backend 'returned' attribute

Stephen Lin swlin at post.harvard.edu
Thu May 2 14:27:28 PDT 2013


> CodeGenModule::ConstructAttributeList gets the Decl;  just have it
> check for a ctor or dtor and ask the CXXABI whether that Decl
> promises to return 'this'.

OK, that works...I didn't want to be the one that added a dependency
on CGCXXABI where none existed before, but since you're suggesting it
I'll go with it :)

-Stephen



More information about the cfe-commits mailing list