Skip to content

Commit fe3d824

Browse files
committed
Code style
1 parent 186d404 commit fe3d824

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang/lib/Sema/SemaChecking.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10612,10 +10612,9 @@ static bool AnalyzeBitFieldAssignment(Sema &S, FieldDecl *Bitfield, Expr *Init,
1061210612
TSI ? TSI->getTypeLoc().getSourceRange() : SourceRange();
1061310613
S.Diag(Bitfield->getTypeSpecStartLoc(), diag::note_change_bitfield_sign)
1061410614
<< SignedEnum << TypeRange;
10615-
if (PTAttr) {
10615+
if (PTAttr)
1061610616
S.Diag(PTAttr->getLocation(), diag::note_bitfield_preferred_type)
1061710617
<< ED;
10618-
}
1061910618
}
1062010619

1062110620
// Compute the required bitwidth. If the enum has negative values, we need
@@ -10632,10 +10631,9 @@ static bool AnalyzeBitFieldAssignment(Sema &S, FieldDecl *Bitfield, Expr *Init,
1063210631
<< Bitfield << PreferredTypeDiagIndex << ED;
1063310632
S.Diag(WidthExpr->getExprLoc(), diag::note_widen_bitfield)
1063410633
<< BitsNeeded << ED << WidthExpr->getSourceRange();
10635-
if (PTAttr) {
10634+
if (PTAttr)
1063610635
S.Diag(PTAttr->getLocation(), diag::note_bitfield_preferred_type)
1063710636
<< ED;
10638-
}
1063910637
}
1064010638
}
1064110639

0 commit comments

Comments
 (0)