mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
Fix three MSVC 2008 warnings that completely clutter the build output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74430 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -89,7 +89,7 @@ namespace llvm {
|
|||||||
int is() const {
|
int is() const {
|
||||||
int TyNo = ::llvm::getPointerUnionTypeNum<PT1, PT2>((T*)0);
|
int TyNo = ::llvm::getPointerUnionTypeNum<PT1, PT2>((T*)0);
|
||||||
assert(TyNo != -1 && "Type query could never succeed on PointerUnion!");
|
assert(TyNo != -1 && "Type query could never succeed on PointerUnion!");
|
||||||
return Val.getInt() == TyNo;
|
return static_cast<int>(Val.getInt()) == TyNo;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// get<T>() - Return the value of the specified pointer type. If the
|
/// get<T>() - Return the value of the specified pointer type. If the
|
||||||
|
@ -324,7 +324,7 @@ public:
|
|||||||
|
|
||||||
uint64_t ReadVBR64(unsigned NumBits) {
|
uint64_t ReadVBR64(unsigned NumBits) {
|
||||||
uint64_t Piece = Read(NumBits);
|
uint64_t Piece = Read(NumBits);
|
||||||
if ((Piece & (1U << (NumBits-1))) == 0)
|
if ((Piece & (uint64_t(1) << (NumBits-1))) == 0)
|
||||||
return Piece;
|
return Piece;
|
||||||
|
|
||||||
uint64_t Result = 0;
|
uint64_t Result = 0;
|
||||||
@ -332,7 +332,7 @@ public:
|
|||||||
while (1) {
|
while (1) {
|
||||||
Result |= (Piece & ((1U << (NumBits-1))-1)) << NextBit;
|
Result |= (Piece & ((1U << (NumBits-1))-1)) << NextBit;
|
||||||
|
|
||||||
if ((Piece & (1U << (NumBits-1))) == 0)
|
if ((Piece & (uint64_t(1) << (NumBits-1))) == 0)
|
||||||
return Result;
|
return Result;
|
||||||
|
|
||||||
NextBit += NumBits-1;
|
NextBit += NumBits-1;
|
||||||
|
Reference in New Issue
Block a user