I noticed that the original patch was not handling destructor calls
correctly.  Handling them in CGExprCXX.cpp is simple, but 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.

On 19 June 2012 11:26, Rafael Espíndola <[email protected]> wrote:
> Clang currently looks through casts to find out if the class it is
> calling a method of is final, but then forgets to look again when
> actually producing the direct call.
>
> The attached patch fixes it, but I had to code a method for finding
> the corresponding method in a derived class. I assume something like
> this already exists somewhere (for building vtables for example), but
> I could not find it.

Cheers,
Rafael

Attachment: t.patch
Description: Binary data

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

Reply via email to