Mercurial > projects > ldc
diff 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 |
line wrap: on
line diff
--- a/gen/tollvm.cpp Mon Jun 01 01:28:18 2009 +0200 +++ b/gen/tollvm.cpp Mon Jun 01 23:17:47 2009 +0200 @@ -403,6 +403,14 @@ ////////////////////////////////////////////////////////////////////////////////////////// +LLConstant* DtoGEPi(LLConstant* ptr, unsigned i0, unsigned i1) +{ + LLValue* v[2] = { DtoConstUint(i0), DtoConstUint(i1) }; + return llvm::ConstantExpr::getGetElementPtr(ptr, v, 2); +} + +////////////////////////////////////////////////////////////////////////////////////////// + void DtoMemSetZero(LLValue* dst, LLValue* nbytes) { dst = DtoBitCast(dst,getVoidPtrType());