Cleaned up TypeInfo_Struct.

Fixed problem with DtoConstSize_t taking a size_t argument, this is not enough for cross compiling from 32bit host to a 64bit target. It now takes uint64_t. There's probably a lot of similar case around to code ...
This commit is contained in:
Tomas Lindquist Olsen
2009-05-17 04:41:10 +02:00
parent f3c7278e88
commit d80de9deb3
5 changed files with 90 additions and 154 deletions

View File

@@ -489,7 +489,7 @@ void DtoMemoryBarrier(bool ll, bool ls, bool sl, bool ss, bool device)
//////////////////////////////////////////////////////////////////////////////////////////
llvm::ConstantInt* DtoConstSize_t(size_t i)
llvm::ConstantInt* DtoConstSize_t(uint64_t i)
{
return llvm::ConstantInt::get(DtoSize_t(), i, false);
}