Mercurial > projects > ldc
comparison gen/tollvm.cpp @ 1450:83bdf7bed9c5
Fix a type mismatch in ModuleInfo generation.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Mon, 01 Jun 2009 23:17:47 +0200 |
parents | a6dfd3cb5b99 |
children | b3ba2c6ff038 |
comparison
equal
deleted
inserted
replaced
1449:301a916eceef | 1450:83bdf7bed9c5 |
---|---|
401 return llvm::GetElementPtrInst::Create(ptr, v.begin(), v.end(), var?var:"tmp", bb?bb:gIR->scopebb()); | 401 return llvm::GetElementPtrInst::Create(ptr, v.begin(), v.end(), var?var:"tmp", bb?bb:gIR->scopebb()); |
402 } | 402 } |
403 | 403 |
404 ////////////////////////////////////////////////////////////////////////////////////////// | 404 ////////////////////////////////////////////////////////////////////////////////////////// |
405 | 405 |
406 LLConstant* DtoGEPi(LLConstant* ptr, unsigned i0, unsigned i1) | |
407 { | |
408 LLValue* v[2] = { DtoConstUint(i0), DtoConstUint(i1) }; | |
409 return llvm::ConstantExpr::getGetElementPtr(ptr, v, 2); | |
410 } | |
411 | |
412 ////////////////////////////////////////////////////////////////////////////////////////// | |
413 | |
406 void DtoMemSetZero(LLValue* dst, LLValue* nbytes) | 414 void DtoMemSetZero(LLValue* dst, LLValue* nbytes) |
407 { | 415 { |
408 dst = DtoBitCast(dst,getVoidPtrType()); | 416 dst = DtoBitCast(dst,getVoidPtrType()); |
409 | 417 |
410 const LLType* intTy = DtoSize_t(); | 418 const LLType* intTy = DtoSize_t(); |