forked from OSchip/llvm-project
Fix signed/unsigned Compare
Do some casting to avoid a signed/unsigned compare. llvm-svn: 172571
This commit is contained in:
parent
c5ff624222
commit
464d219576
|
@ -1075,7 +1075,8 @@ CGRecordLayout *CodeGenTypes::ComputeRecordLayout(const RecordDecl *D,
|
|||
// the size + offset should match the storage size in that case as it
|
||||
// "starts" at the back.
|
||||
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");
|
||||
else
|
||||
assert(Info.Offset == 0 &&
|
||||
|
|
Loading…
Reference in New Issue