[clang] Implement [[msvc::no_unique_address]] (PR #65675)
Amy Huang via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 8 17:23:30 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;
----------------
amykhuang wrote:
I realized I can reduce the places that DataSize is set, and I think it's more readable this way?
https://github.com/llvm/llvm-project/pull/65675
More information about the cfe-commits
mailing list