On May 2, 2013, at 6:12 PM, Stephen Lin <[email protected]> wrote: >> 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, turns out I can't call HasThisReturn directly because it needs a > GlobalDecl rather than a Decl to determine the constructor or > destructor type.
That seems extremely fixable. There are not very many callers of this, and the major ones already derive the Decl* from a GlobalDecl. For SetInternalFunctionAttributes, you can just wrap the Decl* back up; it should never be working with a ctor or dtor. John. _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
