[llvm-commits] CVS: llvm/lib/ExecutionEngine/Interpreter/Execution.cpp

Chris Lattner clattner at apple.com
Thu Mar 8 15:28:02 PST 2007


On Mar 8, 2007, at 3:27 PM, Bill Wendling wrote:
> Changes in directory llvm/lib/ExecutionEngine/Interpreter:
> Execution.cpp updated: 1.175 -> 1.176
> ---
> Log message:
>
> Don't use a cast. It causes an error on some platforms.

std::hex is sticky.  Please don't use it.

I assume that this fails because memory is a pointer?  If so, try  
casting to uintptr_t

-Chris

>
> ---
> Diffs of the changes:  (+1 -1)
>
>  Execution.cpp |    2 +-
>  1 files changed, 1 insertion(+), 1 deletion(-)
>
>
> Index: llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
> diff -u llvm/lib/ExecutionEngine/Interpreter/Execution.cpp:1.175  
> llvm/lib/ExecutionEngine/Interpreter/Execution.cpp:1.176
> --- llvm/lib/ExecutionEngine/Interpreter/Execution.cpp:1.175	Mon  
> Mar  5 21:46:41 2007
> +++ llvm/lib/ExecutionEngine/Interpreter/Execution.cpp	Thu Mar  8  
> 17:26:50 2007
> @@ -753,7 +753,7 @@
>
>    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!");
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list