mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-23 12:40:17 +00:00
Compute the correct word number.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37322 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fa73ea2d9f
commit
849c5b4537
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user