[clang] Implement [[msvc::no_unique_address]] (PR #65675)
Martin Storsjö via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 12 23:11:25 PDT 2023
================
@@ -2866,8 +2871,10 @@ MicrosoftRecordLayoutBuilder::layoutNonVirtualBases(const CXXRecordDecl *RD) {
for (const CXXBaseSpecifier &Base : RD->bases()) {
if (Base.isVirtual())
continue;
+
const CXXRecordDecl *BaseDecl = Base.getType()->getAsCXXRecordDecl();
const ASTRecordLayout &BaseLayout = Context.getASTRecordLayout(BaseDecl);
+
----------------
mstorsjo wrote:
Nit: After adding and removing things here, the total result of the PR ends up in adding new spurious empty lines here (and right above, and below on line 2949 and 2967).
https://github.com/llvm/llvm-project/pull/65675
More information about the cfe-commits
mailing list