aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2006-01-25 17:18:50 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2006-01-25 17:18:50 +0000
commit05ebc8d795f039f1b7647bb33e995aa2f5c40b73 (patch)
treee5d9c8e09a6c096ad3cdb78d5f806d6969f635df
parent44c687d0afa9be89e1dc45dca96713e58a94ccb8 (diff)
Make it even more portable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25605 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Bytecode/Reader/Reader.cpp2
-rw-r--r--lib/CodeGen/DwarfWriter.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp
index 239cf5c20e..d2660e3fab 100644
--- a/lib/Bytecode/Reader/Reader.cpp
+++ b/lib/Bytecode/Reader/Reader.cpp
@@ -79,7 +79,7 @@ inline void BytecodeReader::checkPastBlockEnd(const char * block_name) {
inline void BytecodeReader::align32() {
if (hasAlignment) {
BufPtr Save = At;
- At = (const unsigned char *)((size_t)(At+3) & (~3UL));
+ At = (const unsigned char *)((intptr_t)(At+3) & (~3UL));
if (At > Save)
if (Handler) Handler->handleAlignment(At - Save);
if (At > BlockEnd)
diff --git a/lib/CodeGen/DwarfWriter.cpp b/lib/CodeGen/DwarfWriter.cpp
index 888c771705..c11c52f08c 100644
--- a/lib/CodeGen/DwarfWriter.cpp
+++ b/lib/CodeGen/DwarfWriter.cpp
@@ -645,7 +645,7 @@ void DIEAbbrev::Emit(const DwarfWriter &DW) const {
#ifndef NDEBUG
void DIEAbbrev::print(std::ostream &O) {
O << "Abbreviation @"
- << std::hex << (size_t)this << std::dec
+ << std::hex << (intptr_t)this << std::dec
<< " "
<< TagString(Tag)
<< " "