[PATCH] ignore -mconstructor-aliases when adding field paddings for asan

Kostya Serebryany kcc at google.com
Thu Oct 30 15:08:57 PDT 2014


On Thu, Oct 30, 2014 at 2:54 PM, Rafael EspĂ­ndola <
rafael.espindola at gmail.com> wrote:

> On 30 October 2014 13:54, Kostya Serebryany <kcc at google.com> wrote:
> > We need to emit the actual DTOR instead of replacing it with the base
> class DTOR, because later in clang codegen this DTOR will be instrumented
> with __asan_unpoison_intra_object_redzone and its body will become non-empty
>
> This is just a problem if the target destructor itself is not
> instrumented, right? I assume that is why this optimization is a
> problem but aliasing D2 and D1 is not?
>

Right...


>
> Cheers,
> Rafael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141030/b46dd7f7/attachment.html>


More information about the cfe-commits mailing list