mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 10:57:35 +03:00
Replace AsmBlockStatement with CompoundAsmStatement.
This commit is contained in:
parent
6c71eb16bb
commit
f61327c149
9 changed files with 35 additions and 113 deletions
|
@ -1048,7 +1048,7 @@ void DtoDefineFunction(FuncDeclaration* fd)
|
|||
llvm::ReturnInst::Create(gIR->context(), gIR->scopebb());
|
||||
}
|
||||
else if (!fd->isMain()) {
|
||||
AsmBlockStatement* asmb = fd->fbody->endsWithAsm();
|
||||
CompoundAsmStatement* asmb = fd->fbody->endsWithAsm();
|
||||
if (asmb) {
|
||||
assert(asmb->abiret);
|
||||
llvm::ReturnInst::Create(gIR->context(), asmb->abiret, bb);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue