From: Eli Bendersky Date: Tue, 18 Dec 2012 18:53:14 +0000 (+0000) Subject: Fix a compilation warning with gcc 4.6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=76bd3d8599a802f6c87833c946e0214d9cb13a07;p=platform%2Fupstream%2Fllvm.git 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 @@ CGRecordLayout *CodeGenTypes::ComputeRecordLayout(const RecordDecl *D, "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(Info.Offset) + Info.Size <= Info.StorageSize && "Bitfield outside of its allocated storage"); } #endif