diff options
author | Zhou Sheng <zhousheng00@gmail.com> | 2007-05-24 15:03:18 +0000 |
---|---|---|
committer | Zhou Sheng <zhousheng00@gmail.com> | 2007-05-24 15:03:18 +0000 |
commit | 849c5b45379af00348ecf785e52fedeab83995a2 (patch) | |
tree | bf8045bd04776c1df0ffe23574e9a298234602d1 /lib/ExecutionEngine/ExecutionEngine.cpp | |
parent | fa73ea2d9fd785a214256ca44488407b26c5a3db (diff) | |
download | external_llvm-849c5b45379af00348ecf785e52fedeab83995a2.zip external_llvm-849c5b45379af00348ecf785e52fedeab83995a2.tar.gz external_llvm-849c5b45379af00348ecf785e52fedeab83995a2.tar.bz2 |
Compute the correct word number.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37322 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/ExecutionEngine.cpp')
-rw-r--r-- | lib/ExecutionEngine/ExecutionEngine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp index b1e8774..d67fbb2 100644 --- a/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/lib/ExecutionEngine/ExecutionEngine.cpp @@ -573,7 +573,7 @@ void ExecutionEngine::LoadValueFromMemory(GenericValue &Result, } else if (BitWidth <= 64) { Result.IntVal = APInt(BitWidth, *((uint64_t*)Ptr)); } else - Result.IntVal = APInt(BitWidth, BitWidth/64, (uint64_t*)Ptr); + Result.IntVal = APInt(BitWidth, (BitWidth+63)/64, (uint64_t*)Ptr); break; } case Type::FloatTyID: |