From 24fa5fd29bfad8d6ee8568310c2928c04b06bb48 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Wed, 4 Aug 2004 22:56:46 +0000 Subject: Turn a use of intptr_t into a reinterpret_cast instead to get rid of compilation warnings on some platforms. llvm-svn: 15512 --- llvm/lib/Bytecode/Reader/ReaderWrappers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Bytecode/Reader/ReaderWrappers.cpp') diff --git a/llvm/lib/Bytecode/Reader/ReaderWrappers.cpp b/llvm/lib/Bytecode/Reader/ReaderWrappers.cpp index f8f1101a018..a6983d057c3 100644 --- a/llvm/lib/Bytecode/Reader/ReaderWrappers.cpp +++ b/llvm/lib/Bytecode/Reader/ReaderWrappers.cpp @@ -102,7 +102,7 @@ BytecodeBufferReader::BytecodeBufferReader(const unsigned char *Buf, { // If not aligned, allocate a new buffer to hold the bytecode... const unsigned char *ParseBegin = 0; - if ((intptr_t)Buf & 3) { + if (reinterpret_cast(Buf) & 3) { Buffer = new unsigned char[Length+4]; unsigned Offset = 4 - ((intptr_t)Buffer & 3); // Make sure it's aligned ParseBegin = Buffer + Offset; -- cgit v1.2.3