fix some warnings when compiled with 32-bit hosts

llvm-svn: 22521
This commit is contained in:
Chris Lattner 2005-07-27 05:58:01 +00:00
parent 33a030e36c
commit a5ec193118
1 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ bool AlphaCodeEmitter::runOnMachineFunction(MachineFunction &MF) {
} }
void AlphaCodeEmitter::emitBasicBlock(MachineBasicBlock &MBB) { void AlphaCodeEmitter::emitBasicBlock(MachineBasicBlock &MBB) {
uint64_t Addr = MCE.getCurrentPCValue(); uintptr_t Addr = MCE.getCurrentPCValue();
BasicBlockAddrs[&MBB] = (unsigned*)Addr; BasicBlockAddrs[&MBB] = (unsigned*)Addr;
for (MachineBasicBlock::iterator I = MBB.begin(), E = MBB.end(); for (MachineBasicBlock::iterator I = MBB.begin(), E = MBB.end();
@ -216,7 +216,7 @@ int AlphaCodeEmitter::getMachineOpValue(MachineInstr &MI, MachineOperand &MO) {
Reloc, MO.getConstantPoolIndex(), Reloc, MO.getConstantPoolIndex(),
Offset)); Offset));
} else if (MO.isMachineBasicBlock()) { } else if (MO.isMachineBasicBlock()) {
unsigned* CurrPC = (unsigned*)MCE.getCurrentPCValue(); unsigned* CurrPC = (unsigned*)(intptr_t)MCE.getCurrentPCValue();
BBRefs.push_back(std::make_pair(MO.getMachineBasicBlock(), CurrPC)); BBRefs.push_back(std::make_pair(MO.getMachineBasicBlock(), CurrPC));
}else { }else {
std::cerr << "ERROR: Unknown type of MachineOperand: " << MO << "\n"; std::cerr << "ERROR: Unknown type of MachineOperand: " << MO << "\n";