Remember to set asm type back to void and n=0 when rewriting to sret asm return.

This commit is contained in:
Tomas Lindquist Olsen
2009-03-01 20:22:10 +01:00
parent ee1e545a0a
commit 3d6b0b68d5

View File

@@ -215,6 +215,8 @@ void emitABIReturnAsmStmt(IRAsmBlock* asmblock, Loc loc, FuncDeclaration* fdecl)
} else {
// cdouble and creal extern(C) are returned in pointer
// don't add anything!
asmblock->retty = LLType::VoidTy;
asmblock->retn = 0;
return;
}
} else {