Implement _d_arraycatnTX and remove _d_arraycatnT.

With this commit, the first simple applications can be linked and run!
This commit is contained in:
kai 2015-03-21 17:37:51 +01:00
parent 51b9822916
commit 9ef4c8f421
3 changed files with 34 additions and 16 deletions

View file

@ -136,9 +136,7 @@ void DtoDeleteArray(Loc& loc, DValue* arr)
llvm::AllocaInst* DtoAlloca(Type* type, const char* name)
{
LLType* lltype = i1ToI8(DtoType(type));
llvm::AllocaInst* ai = new llvm::AllocaInst(lltype, name, gIR->topallocapoint());
ai->setAlignment(type->alignsize());
return ai;
return DtoRawAlloca(lltype, type->alignsize(), name);
}
llvm::AllocaInst* DtoArrayAlloca(Type* type, unsigned arraysize, const char* name)