Skip to content

Commit ec0efa9

Browse files
committed
Remove extra whitespaces
1 parent e9fcbe0 commit ec0efa9

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

clang/lib/AST/RecordLayoutBuilder.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2871,10 +2871,8 @@ MicrosoftRecordLayoutBuilder::layoutNonVirtualBases(const CXXRecordDecl *RD) {
28712871
for (const CXXBaseSpecifier &Base : RD->bases()) {
28722872
if (Base.isVirtual())
28732873
continue;
2874-
28752874
const CXXRecordDecl *BaseDecl = Base.getType()->getAsCXXRecordDecl();
28762875
const ASTRecordLayout &BaseLayout = Context.getASTRecordLayout(BaseDecl);
2877-
28782876
// Only lay out bases without extendable VFPtrs on the second pass.
28792877
if (BaseLayout.hasExtendableVFPtr()) {
28802878
VBPtrOffset = Bases[BaseDecl] + BaseLayout.getNonVirtualSize();
@@ -2946,7 +2944,6 @@ void MicrosoftRecordLayoutBuilder::layoutNonVirtualBase(
29462944
BaseOffset = Size = Size.alignTo(Info.Alignment);
29472945
}
29482946
}
2949-
29502947
Bases.insert(std::make_pair(BaseDecl, BaseOffset));
29512948
Size += BaseLayout.getNonVirtualSize();
29522949
DataSize = Size;
@@ -2964,7 +2961,6 @@ void MicrosoftRecordLayoutBuilder::layoutField(const FieldDecl *FD) {
29642961
layoutBitField(FD);
29652962
return;
29662963
}
2967-
29682964
LastFieldIsNonZeroWidthBitfield = false;
29692965
ElementInfo Info = getAdjustedElementInfo(FD);
29702966
Alignment = std::max(Alignment, Info.Alignment);

clang/lib/CodeGen/CGRecordLayoutBuilder.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,6 @@ void CGRecordLowering::calculateZeroInit() {
743743
void CGRecordLowering::clipTailPadding() {
744744
std::vector<MemberInfo>::iterator Prior = Members.begin();
745745
CharUnits Tail = getSize(Prior->Data);
746-
747746
for (std::vector<MemberInfo>::iterator Member = Prior + 1,
748747
MemberEnd = Members.end();
749748
Member != MemberEnd; ++Member) {

clang/lib/Sema/SemaDeclAttr.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8373,11 +8373,9 @@ static void handleNoMergeAttr(Sema &S, Decl *D, const ParsedAttr &AL) {
83738373

83748374
static void handleNoUniqueAddressAttr(Sema &S, Decl *D, const ParsedAttr &AL) {
83758375
NoUniqueAddressAttr TmpAttr(S.Context, AL);
8376-
if (S.getLangOpts().MSVCCompat) {
8377-
if (TmpAttr.isStandard()) {
8378-
S.Diag(AL.getLoc(), diag::warn_attribute_ignored) << AL;
8379-
return;
8380-
}
8376+
if (S.getLangOpts().MSVCCompat && TmpAttr.isStandard()) {
8377+
S.Diag(AL.getLoc(), diag::warn_attribute_ignored) << AL;
8378+
return;
83818379
} else if (TmpAttr.isMSVC()) {
83828380
S.Diag(AL.getLoc(), diag::warn_attribute_ignored) << AL;
83838381
return;

0 commit comments

Comments
 (0)