[NFC][MSan] Round up OffsetPtr in PoisonMembers
authorVitaly Buka <vitalybuka@google.com>
Sat, 5 Dec 2020 07:46:58 +0000 (23:46 -0800)
committerVitaly Buka <vitalybuka@google.com>
Tue, 8 Dec 2020 03:57:49 +0000 (19:57 -0800)
commit6e614b0c7ed3a9a66428f342bf2a4b3700525395
tree273b867c03784cca3f974e910f63d3b55c30b842
parentdeac8b1f450ff7d2d00218d962c3e7e5ff1ff86e
[NFC][MSan] Round up OffsetPtr in PoisonMembers

getFieldOffset(layoutStartOffset)  is expected to point to the first trivial
field or the one which follows non-trivial. So it must be byte aligned already.
However this is not obvious without assumptions about callers.
This patch will avoid the need in such assumptions.

Depends on D92727.

Differential Revision: https://reviews.llvm.org/D92728
clang/lib/CodeGen/CGClass.cpp