r125156.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125280
91177308-0d34-0410-b5e6-
96231b3b80d8
}
// Append tail padding.
- if (Layout.getSize().getQuantity() > Size)
+ uint64_t RecordSizeInBits = Layout.getSize().getQuantity();
+ if (RecordSizeInBits > Size)
AppendPadding(Layout.getSize().getQuantity(), Align);
}
// First check if we can use the same fields as for the complete class.
- if (AlignedNonVirtualTypeSize == Layout.getSize().getQuantity()) {
+ uint64_t RecordSizeInBits = Layout.getSize().getQuantity();
+ if (AlignedNonVirtualTypeSize == RecordSizeInBits) {
NonVirtualBaseTypeIsSameAsCompleteType = true;
return true;
}