fix some warnings when compiled with 32-bit hosts

llvm-svn: 22521
diff --git a/llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp b/llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp
index f198883..92e38b9 100644
--- a/llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp
+++ b/llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp
@@ -101,7 +101,7 @@
 }
 
 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 @@
                                           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";