Drop the 'InBits' part from the name of RecordSizeInBits as the value is in
character units.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125281 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGRecordLayoutBuilder.cpp b/lib/CodeGen/CGRecordLayoutBuilder.cpp
index 3667376..af0c9ed 100644
--- a/lib/CodeGen/CGRecordLayoutBuilder.cpp
+++ b/lib/CodeGen/CGRecordLayoutBuilder.cpp
@@ -490,9 +490,9 @@
}
// Append tail padding.
- uint64_t RecordSizeInBits = Layout.getSize().getQuantity();
- if (RecordSizeInBits > Size)
- AppendPadding(Layout.getSize().getQuantity(), Align);
+ uint64_t RecordSize = Layout.getSize().getQuantity();
+ if (RecordSize > Size)
+ AppendPadding(RecordSize, Align);
}
void CGRecordLayoutBuilder::LayoutBase(const CXXRecordDecl *BaseDecl,
@@ -626,8 +626,8 @@
// First check if we can use the same fields as for the complete class.
- uint64_t RecordSizeInBits = Layout.getSize().getQuantity();
- if (AlignedNonVirtualTypeSize == RecordSizeInBits) {
+ uint64_t RecordSize = Layout.getSize().getQuantity();
+ if (AlignedNonVirtualTypeSize == RecordSize) {
NonVirtualBaseTypeIsSameAsCompleteType = true;
return true;
}