Drop the 'InBits' part from the name of RecordSizeInBits as the value is in
character units.
llvm-svn: 125281
diff --git a/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp b/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp
index 3667376..af0c9ed 100644
--- a/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp
+++ b/clang/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;
}