Fix a compilation warning with gcc 4.6


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170440 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGRecordLayoutBuilder.cpp b/lib/CodeGen/CGRecordLayoutBuilder.cpp
index 43088b4..90c3387 100644
--- a/lib/CodeGen/CGRecordLayoutBuilder.cpp
+++ b/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