Don't use a cast. It causes an error on some platforms.
authorBill Wendling <isanbard@gmail.com>
Thu, 8 Mar 2007 23:26:50 +0000 (23:26 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 8 Mar 2007 23:26:50 +0000 (23:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35037 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/Interpreter/Execution.cpp

index b19fa048cfd253f07ec1f9b3d3fa1153e8351660..e64a6e8e51f36e0525898434eb3e9a96b2c6a15a 100644 (file)
@@ -753,7 +753,7 @@ void Interpreter::visitAllocationInst(AllocationInst &I) {
 
   DOUT << "Allocated Type: " << *Ty << " (" << TypeSize << " bytes) x " 
        << NumElements << " (Total: " << MemToAlloc << ") at "
-       << unsigned(Memory) << '\n';
+       << std::hex << Memory << '\n';
 
   GenericValue Result = PTOGV(Memory);
   assert(Result.PointerVal != 0 && "Null pointer returned by malloc!");