Avoid a "loss of precision" error in gcc 4.1.3.
authorReid Spencer <rspencer@reidspencer.com>
Wed, 16 May 2007 16:39:29 +0000 (16:39 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Wed, 16 May 2007 16:39:29 +0000 (16:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37105 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/Interpreter/Execution.cpp

index 8231001b32cbaca342209cd0fa43a855730aa8a9..30ca4f66d40a1f4da8ee8595bbb1db70545cf7dc 100644 (file)
@@ -1344,7 +1344,7 @@ static void PrintGenericValue(const GenericValue &Val, const Type* Ty) {
     case Type::VoidTyID:    DOUT << "void"; break;
     case Type::FloatTyID:   DOUT << "float " << Val.FloatVal; break;
     case Type::DoubleTyID:  DOUT << "double " << Val.DoubleVal; break;
-    case Type::PointerTyID: DOUT << "void* " << unsigned(Val.PointerVal); break;
+    case Type::PointerTyID: DOUT << "void* " << intptr_t(Val.PointerVal); break;
     case Type::IntegerTyID: 
       DOUT << "i" << Val.IntVal.getBitWidth() << " " << Val.IntVal.toString(10)
            << "\n";