mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-30 23:20:40 +03:00
Remove legacy LL[Maybe]Align
This commit is contained in:
parent
f6702cfbf5
commit
5d3ded9eeb
15 changed files with 29 additions and 32 deletions
|
@ -191,7 +191,7 @@ llvm::AllocaInst *DtoArrayAlloca(Type *type, unsigned arraysize,
|
|||
lltype, gIR->module.getDataLayout().getAllocaAddrSpace(),
|
||||
DtoConstUint(arraysize), name, gIR->topallocapoint());
|
||||
if (auto alignment = DtoAlignment(type)) {
|
||||
ai->setAlignment(LLAlign(alignment));
|
||||
ai->setAlignment(llvm::Align(alignment));
|
||||
}
|
||||
return ai;
|
||||
}
|
||||
|
@ -202,7 +202,7 @@ llvm::AllocaInst *DtoRawAlloca(LLType *lltype, size_t alignment,
|
|||
lltype, gIR->module.getDataLayout().getAllocaAddrSpace(), name,
|
||||
gIR->topallocapoint());
|
||||
if (alignment) {
|
||||
ai->setAlignment(LLAlign(alignment));
|
||||
ai->setAlignment(llvm::Align(alignment));
|
||||
}
|
||||
return ai;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue