[cfe-commits] r125280 - /cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp
Ken Dyck
kd at kendyck.com
Thu Feb 10 04:20:05 PST 2011
Author: kjdyck
Date: Thu Feb 10 06:20:05 2011
New Revision: 125280
URL: http://llvm.org/viewvc/llvm-project?rev=125280&view=rev
Log:
Eliminate some signed-to-unsigned comparision warnings introduced in
r125156.
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=125280&r1=125279&r2=125280&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp Thu Feb 10 06:20:05 2011
@@ -490,7 +490,8 @@
}
// 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 @@
// 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;
}
More information about the cfe-commits
mailing list