aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ExecutionEngine/ExecutionEngine.cpp
diff options
context:
space:
mode:
authorZhou Sheng <zhousheng00@gmail.com>2007-05-24 15:03:18 +0000
committerZhou Sheng <zhousheng00@gmail.com>2007-05-24 15:03:18 +0000
commit849c5b45379af00348ecf785e52fedeab83995a2 (patch)
treebf8045bd04776c1df0ffe23574e9a298234602d1 /lib/ExecutionEngine/ExecutionEngine.cpp
parentfa73ea2d9fd785a214256ca44488407b26c5a3db (diff)
downloadexternal_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.cpp2
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: