Eliminate some signed-to-unsigned comparision warnings introduced in

r125156.

llvm-svn: 125280
This commit is contained in:
Ken Dyck 2011-02-10 12:20:05 +00:00
parent 84fde9ef2b
commit f18bf0d2e1
1 changed files with 4 additions and 2 deletions

View File

@ -490,7 +490,8 @@ void CGRecordLayoutBuilder::LayoutUnion(const RecordDecl *D) {
}
// Append tail padding.
if (Layout.getSize().getQuantity() > Size)
uint64_t RecordSizeInBits = Layout.getSize().getQuantity();
if (RecordSizeInBits > Size)
AppendPadding(Layout.getSize().getQuantity(), Align);
}
@ -625,7 +626,8 @@ CGRecordLayoutBuilder::ComputeNonVirtualBaseType(const CXXRecordDecl *RD) {
// 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;
}