mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Quiet VC++ warnings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17484 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -344,7 +344,7 @@ bool Pattern::InferTypes(TreePatternNode *N, bool &MadeChange) {
|
||||
break;
|
||||
}
|
||||
|
||||
return AnyUnset | N->getType() == MVT::Other;
|
||||
return AnyUnset | (N->getType() == MVT::Other);
|
||||
}
|
||||
|
||||
/// clone - This method is used to make an exact copy of the current pattern,
|
||||
|
@@ -67,7 +67,7 @@ Init *BitsRecTy::convertValue(IntInit *II) {
|
||||
if (Value & ~((1LL << Size)-1))
|
||||
return 0;
|
||||
} else {
|
||||
if ((Value >> Size) != -1 || ((Value & (1 << Size-1)) == 0))
|
||||
if ((Value >> Size) != -1 || ((Value & (1 << (Size-1))) == 0))
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user