Fix a bug in IntToPtr. Truncating to 64-bits only works if the integer
authorReid Spencer <rspencer@reidspencer.com>
Tue, 6 Mar 2007 03:41:50 +0000 (03:41 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Tue, 6 Mar 2007 03:41:50 +0000 (03:41 +0000)
commit7553c341354c7790cebda40ea0d647f9d204544b
treeb72315aaa1f96490a1109397f49bb47635335baa
parent124294bc59dab9ec57fd7072cec574a4464ec59f
Fix a bug in IntToPtr. Truncating to 64-bits only works if the integer
is larger. Adjust so that it truncates to pointer width, only if necessary.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34954 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/Interpreter/Execution.cpp