[PATCH] D92728: [NFC][MSan] Round up OffsetPtr in PoisonMembersgetFieldOffset(layoutStartOffset) for current calleds is expected topoint to the first trivial field or the one which follows non-trivial.So it must be byte aligned. However this is not obvious...
Matt Morehouse via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 7 08:14:50 PST 2020
morehouse added inline comments.
================
Comment at: clang/lib/CodeGen/CGClass.cpp:1742
+ Context.toCharUnitsFromBits(Layout.getFieldOffset(layoutStartOffset) +
+ Context.getCharWidth() - 1);
+ llvm::ConstantInt *OffsetSizePtr =
----------------
How does this interact with bit fields?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D92728/new/
https://reviews.llvm.org/D92728
More information about the cfe-commits
mailing list