[llvm-commits] CVS: llvm/lib/Bytecode/Reader/Reader.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Tue Jul 13 00:37:54 PDT 2004



Changes in directory llvm/lib/Bytecode/Reader:

Reader.cpp updated: 1.113 -> 1.114

---
Log message:

Fix warning on SparcV9, where sizeof (int) != sizeof (void *).


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

Index: llvm/lib/Bytecode/Reader/Reader.cpp
diff -u llvm/lib/Bytecode/Reader/Reader.cpp:1.113 llvm/lib/Bytecode/Reader/Reader.cpp:1.114
--- llvm/lib/Bytecode/Reader/Reader.cpp:1.113	Sun Jul 11 12:28:43 2004
+++ llvm/lib/Bytecode/Reader/Reader.cpp	Tue Jul 13 02:37:43 2004
@@ -410,7 +410,7 @@
     error("Corrupt compaction table entry!"
         + utostr(TyID) + ", " + utostr(SlotNo) + ": " 
         + utostr(ModuleValues.size()) + ", "
-        + utohexstr(int((void*)ModuleValues[TyID])) + ", "
+        + utohexstr(intptr_t((void*)ModuleValues[TyID])) + ", "
         + utostr(ModuleValues[TyID]->size()));
   }
   return ModuleValues[TyID]->getOperand(SlotNo);





More information about the llvm-commits mailing list