]> granicus.if.org Git - clang/commitdiff
Drop the 'InBits' part from the name of RecordSizeInBits as the value is in
authorKen Dyck <kd@kendyck.com>
Thu, 10 Feb 2011 12:36:29 +0000 (12:36 +0000)
committerKen Dyck <kd@kendyck.com>
Thu, 10 Feb 2011 12:36:29 +0000 (12:36 +0000)
character units.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125281 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGRecordLayoutBuilder.cpp

index 36673764b9f14bb04a0df2e27c07977734b50736..af0c9ed499a5c0ef4ca639834ad112026bda2bae 100644 (file)
@@ -490,9 +490,9 @@ void CGRecordLayoutBuilder::LayoutUnion(const RecordDecl *D) {
   }
 
   // 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 @@ CGRecordLayoutBuilder::ComputeNonVirtualBaseType(const CXXRecordDecl *RD) {
   
   
   // 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;
   }