Cast arithmetic results to avoid comparison of an unsigned to an int.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172570
91177308-0d34-0410-b5e6-
96231b3b80d8
cast<llvm::LoadInst>(Val)->setAlignment(Info.StorageAlignment);
if (Info.IsSigned) {
- assert((Info.Offset + Info.Size) <= Info.StorageSize);
+ assert(static_cast<unsigned>(Info.Offset + Info.Size) <= Info.StorageSize);
unsigned HighBits = Info.StorageSize - Info.Offset - Info.Size;
if (HighBits)
Val = Builder.CreateShl(Val, HighBits, "bf.shl");