[cfe-commits] [patch][pr13142] Call the correct method when looking through casts to final classes.

Rafael EspĂ­ndola rafael.espindola at gmail.com
Wed Jun 20 12:48:57 PDT 2012


> ... 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 10267 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120620/c784b76d/attachment.obj>


More information about the cfe-commits mailing list