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

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Oct 30 14:54:20 PDT 2014


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?

Cheers,
Rafael



More information about the cfe-commits mailing list