[all-commits] [llvm/llvm-project] 6e614b: [NFC][MSan] Round up OffsetPtr in PoisonMembers
Vitaly Buka via All-commits
all-commits at lists.llvm.org
Mon Dec 7 20:19:22 PST 2020
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6e614b0c7ed3a9a66428f342bf2a4b3700525395
https://github.com/llvm/llvm-project/commit/6e614b0c7ed3a9a66428f342bf2a4b3700525395
Author: Vitaly Buka <vitalybuka at google.com>
Date: 2020-12-07 (Mon, 07 Dec 2020)
Changed paths:
M clang/lib/CodeGen/CGClass.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list