[cfe-commits] r170440 - /cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp
Eli Bendersky
eliben at google.com
Tue Dec 18 10:53:14 PST 2012
Author: eliben
Date: Tue Dec 18 12:53:14 2012
New Revision: 170440
URL: http://llvm.org/viewvc/llvm-project?rev=170440&view=rev
Log:
Fix a compilation warning with gcc 4.6
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=170440&r1=170439&r2=170440&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp Tue Dec 18 12:53:14 2012
@@ -1088,7 +1088,7 @@
"Storage size does not match the element type size");
}
assert(Info.Size > 0 && "Empty bitfield!");
- assert(Info.Offset + Info.Size <= Info.StorageSize &&
+ assert(static_cast<unsigned>(Info.Offset) + Info.Size <= Info.StorageSize &&
"Bitfield outside of its allocated storage");
}
#endif
More information about the cfe-commits
mailing list