Fix a compilation warning with gcc 4.6
llvm-svn: 170440
diff --git a/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp b/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp
index 43088b4..90c3387 100644
--- a/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp
+++ b/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp
@@ -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