From b88d2a44f9a93849df1e16ebae9ef36bd5d171ed Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Tue, 13 Jul 2004 07:37:43 +0000 Subject: Fix warning on SparcV9, where sizeof (int) != sizeof (void *). llvm-svn: 14786 --- llvm/lib/Bytecode/Reader/Reader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Bytecode') diff --git a/llvm/lib/Bytecode/Reader/Reader.cpp b/llvm/lib/Bytecode/Reader/Reader.cpp index fda3721d83e..d71281ed7d9 100644 --- a/llvm/lib/Bytecode/Reader/Reader.cpp +++ b/llvm/lib/Bytecode/Reader/Reader.cpp @@ -410,7 +410,7 @@ Value* BytecodeReader::getGlobalTableValue(const Type *Ty, unsigned SlotNo) { 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); -- cgit v1.2.3