diff options
author | Chris Lattner <sabre@nondot.org> | 2005-07-27 05:58:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-07-27 05:58:01 +0000 |
commit | 45ff4faeed4f479b471f98de16c8b7589759f77a (patch) | |
tree | e47c109eb666f1907797031d90abf0e9095ce31d /lib/Target/Alpha/AlphaCodeEmitter.cpp | |
parent | 9eb59ec548b861d6ede05b4e6dc22aabf645e665 (diff) |
fix some warnings when compiled with 32-bit hosts
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22521 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaCodeEmitter.cpp')
-rw-r--r-- | lib/Target/Alpha/AlphaCodeEmitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/Alpha/AlphaCodeEmitter.cpp b/lib/Target/Alpha/AlphaCodeEmitter.cpp index f198883fdf..92e38b93cd 100644 --- a/lib/Target/Alpha/AlphaCodeEmitter.cpp +++ b/lib/Target/Alpha/AlphaCodeEmitter.cpp @@ -101,7 +101,7 @@ bool AlphaCodeEmitter::runOnMachineFunction(MachineFunction &MF) { } void AlphaCodeEmitter::emitBasicBlock(MachineBasicBlock &MBB) { - uint64_t Addr = MCE.getCurrentPCValue(); + uintptr_t Addr = MCE.getCurrentPCValue(); BasicBlockAddrs[&MBB] = (unsigned*)Addr; for (MachineBasicBlock::iterator I = MBB.begin(), E = MBB.end(); @@ -216,7 +216,7 @@ int AlphaCodeEmitter::getMachineOpValue(MachineInstr &MI, MachineOperand &MO) { Reloc, MO.getConstantPoolIndex(), Offset)); } 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)); }else { std::cerr << "ERROR: Unknown type of MachineOperand: " << MO << "\n"; |