> ... I could not > find a good place is sema to mark them used. The regular functions in > the previous examples are not, but we were asserting only on > destructors.
This patch is a variation that moves code into the AST library so that Sema can mark the destructor used. It is not pretty, as now there is some duplication of effort in Sema and Codegen, but the Codegen assert about the constructor being consider used by Sema was useful in the past, so it would be a pity to drop it. Let me know which one you like best. Cheers, Rafael
t.patch
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
