Skip to content

Commit

Permalink
[clang][NFC] clang-format fix after eb10b06
Browse files Browse the repository at this point in the history
  • Loading branch information
riccibruno committed Jul 29, 2020
1 parent 1ae63b4 commit 517fe05
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clang/lib/Sema/SemaDeclAttr.cpp
Expand Up @@ -3640,15 +3640,15 @@ static void handleTransparentUnionAttr(Sema &S, Decl *D, const ParsedAttr &AL) {
S.Context.getTypeAlign(FieldType) > FirstAlign) {
// Warn if we drop the attribute.
bool isSize = S.Context.getTypeSize(FieldType) != FirstSize;
unsigned FieldBits = isSize? S.Context.getTypeSize(FieldType)
: S.Context.getTypeAlign(FieldType);
unsigned FieldBits = isSize ? S.Context.getTypeSize(FieldType)
: S.Context.getTypeAlign(FieldType);
S.Diag(Field->getLocation(),
diag::warn_transparent_union_attribute_field_size_align)
<< isSize << *Field << FieldBits;
unsigned FirstBits = isSize? FirstSize : FirstAlign;
unsigned FirstBits = isSize ? FirstSize : FirstAlign;
S.Diag(FirstField->getLocation(),
diag::note_transparent_union_first_field_size_align)
<< isSize << FirstBits;
<< isSize << FirstBits;
return;
}
}
Expand Down

0 comments on commit 517fe05

Please sign in to comment.