aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode/Reader
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-07-13 07:37:43 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-07-13 07:37:43 +0000
commit0859e525820e3d07069613d4aa7ae6113e9d57b6 (patch)
treea8089e022cd1cf37aa519a8aece2bc0472a65cfc /lib/Bytecode/Reader
parent38ab6bff5d458505cadf650d0b78742787a02b4d (diff)
Fix warning on SparcV9, where sizeof (int) != sizeof (void *).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14786 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Reader')
-rw-r--r--lib/Bytecode/Reader/Reader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp
index fda3721d83..d71281ed7d 100644
--- a/lib/Bytecode/Reader/Reader.cpp
+++ b/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);