mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
Quiet VC++ warnings
llvm-svn: 17484
This commit is contained in:
parent
bde92f3c03
commit
499e1b16a7
@ -61,11 +61,11 @@ namespace {
|
|||||||
|
|
||||||
|
|
||||||
void *X86JITInfo::getJITStubForFunction(Function *F, MachineCodeEmitter &MCE) {
|
void *X86JITInfo::getJITStubForFunction(Function *F, MachineCodeEmitter &MCE) {
|
||||||
return (void*)((unsigned long)getResolver(MCE).getLazyResolver(F));
|
return (void*)(intptr_t)getResolver(MCE).getLazyResolver(F);
|
||||||
}
|
}
|
||||||
|
|
||||||
void X86JITInfo::replaceMachineCodeForFunction (void *Old, void *New) {
|
void X86JITInfo::replaceMachineCodeForFunction (void *Old, void *New) {
|
||||||
char *OldByte = (char *) Old;
|
unsigned char *OldByte = (char *) Old;
|
||||||
*OldByte++ = 0xE9; // Emit JMP opcode.
|
*OldByte++ = 0xE9; // Emit JMP opcode.
|
||||||
int32_t *OldWord = (int32_t *) OldByte;
|
int32_t *OldWord = (int32_t *) OldByte;
|
||||||
int32_t NewAddr = (intptr_t) New;
|
int32_t NewAddr = (intptr_t) New;
|
||||||
|
@ -344,7 +344,7 @@ bool Pattern::InferTypes(TreePatternNode *N, bool &MadeChange) {
|
|||||||
break;
|
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,
|
/// 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))
|
if (Value & ~((1LL << Size)-1))
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
if ((Value >> Size) != -1 || ((Value & (1 << Size-1)) == 0))
|
if ((Value >> Size) != -1 || ((Value & (1 << (Size-1))) == 0))
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user