Skip to content

Commit

Permalink
[AST] Modernize ExternalLayout (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed Aug 20, 2023
1 parent bd31c36 commit 7a68060
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clang/lib/AST/RecordLayoutBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ struct BaseSubobjectInfo {
/// as DWARF, lacks all the information that was available at compile time, such
/// as alignment attributes on fields and pragmas in effect.
struct ExternalLayout {
ExternalLayout() : Size(0), Align(0) {}
ExternalLayout() = default;

/// Overall record size in bits.
uint64_t Size;
uint64_t Size = 0;

/// Overall record alignment in bits.
uint64_t Align;
uint64_t Align = 0;

/// Record field offsets in bits.
llvm::DenseMap<const FieldDecl *, uint64_t> FieldOffsets;
Expand Down

0 comments on commit 7a68060

Please sign in to comment.