[cfe-commits] r172571 - /cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp
David Greene
greened at obbligato.org
Tue Jan 15 15:13:49 PST 2013
Author: greened
Date: Tue Jan 15 17:13:49 2013
New Revision: 172571
URL: http://llvm.org/viewvc/llvm-project?rev=172571&view=rev
Log:
Fix signed/unsigned Compare
Do some casting to avoid a signed/unsigned compare.
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=172571&r1=172570&r2=172571&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp Tue Jan 15 17:13:49 2013
@@ -1075,7 +1075,8 @@
// the size + offset should match the storage size in that case as it
// "starts" at the back.
if (getDataLayout().isBigEndian())
- assert((Info.Offset + Info.Size) == Info.StorageSize &&
+ assert(static_cast<unsigned>(Info.Offset + Info.Size) ==
+ Info.StorageSize &&
"Big endian union bitfield does not end at the back");
else
assert(Info.Offset == 0 &&
More information about the cfe-commits
mailing list