mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-12 18:33:22 +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…
x
Reference in New Issue
Block a user