forked from OSchip/llvm-project
Eliminate some signed-to-unsigned comparision warnings introduced in
r125156. llvm-svn: 125280
This commit is contained in:
parent
84fde9ef2b
commit
f18bf0d2e1
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue