mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-29 14:40:40 +03:00
Implement _d_arraycatnTX and remove _d_arraycatnT.
With this commit, the first simple applications can be linked and run!
This commit is contained in:
parent
51b9822916
commit
9ef4c8f421
3 changed files with 34 additions and 16 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue