[clang] Implement [[msvc::no_unique_address]] (PR #65675)
Reid Kleckner via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 7 15:02:28 PDT 2023
================
@@ -3055,7 +3195,7 @@ void MicrosoftRecordLayoutBuilder::injectVBPtr(const CXXRecordDecl *RD) {
// It is possible that there were no fields or bases located after vbptr,
// so the size was not adjusted before.
if (Size < FieldStart)
- Size = FieldStart;
+ DataSize = Size = FieldStart;
----------------
rnk wrote:
If we need to track DataSize, should we create an abstraction for updating both members?
https://github.com/llvm/llvm-project/pull/65675
More information about the cfe-commits
mailing list