Compute the correct word number.

llvm-svn: 37322
This commit is contained in:
Zhou Sheng 2007-05-24 15:03:18 +00:00
parent 30978078bf
commit 8ff9ff7975
1 changed files with 1 additions and 1 deletions

View File

@ -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: