Replace AsmBlockStatement with CompoundAsmStatement.

This commit is contained in:
kai 2015-03-01 16:38:02 +01:00
parent 6c71eb16bb
commit f61327c149
9 changed files with 35 additions and 113 deletions

View file

@ -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);