HomePhabricator

[CodeGen][MSan] Don't use offsets of zero-sized fields

Authored by vitalybuka on Dec 4 2020, 11:47 PM.

Description

[CodeGen][MSan] Don't use offsets of zero-sized fields

Such fields will likely have offset zero making
__sanitizer_dtor_callback poisoning wrong regions.
E.g. it can poison base class member from derived class constructor.

Differential Revision: https://reviews.llvm.org/D92727

Details