[cfe-commits] r125281 - /cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp
Ken Dyck
kd at kendyck.com
Thu Feb 10 04:36:29 PST 2011
Author: kjdyck
Date: Thu Feb 10 06:36:29 2011
New Revision: 125281
URL: http://llvm.org/viewvc/llvm-project?rev=125281&view=rev
Log:
Drop the 'InBits' part from the name of RecordSizeInBits as the value is in
character units.
Modified:
cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp
Modified: cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp?rev=125281&r1=125280&r2=125281&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp Thu Feb 10 06:36:29 2011
@@ -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;
}
More information about the cfe-commits
mailing list