зеркало из https://github.com/microsoft/clang-1.git
Fix signed/unsigned Compare
Do some casting to avoid a signed/unsigned compare. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172571 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
cc41a94688
Коммит
ed6355d56c
|
@ -1075,7 +1075,8 @@ CGRecordLayout *CodeGenTypes::ComputeRecordLayout(const RecordDecl *D,
|
||||||
// the size + offset should match the storage size in that case as it
|
// the size + offset should match the storage size in that case as it
|
||||||
// "starts" at the back.
|
// "starts" at the back.
|
||||||
if (getDataLayout().isBigEndian())
|
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");
|
"Big endian union bitfield does not end at the back");
|
||||||
else
|
else
|
||||||
assert(Info.Offset == 0 &&
|
assert(Info.Offset == 0 &&
|
||||||
|
|
Загрузка…
Ссылка в новой задаче