[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Jul 26 22:58:12 PDT 2005



Changes in directory llvm/lib/Target/Alpha:

AlphaCodeEmitter.cpp updated: 1.1 -> 1.2
---
Log message:

fix some warnings when compiled with 32-bit hosts


---
Diffs of the changes:  (+2 -2)

 AlphaCodeEmitter.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp
diff -u llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp:1.1 llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp:1.2
--- llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp:1.1	Fri Jul 22 15:52:16 2005
+++ llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp	Wed Jul 27 00:58:01 2005
@@ -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";






More information about the llvm-commits mailing list