mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-31 03:53:14 +01:00
Remember to set asm type back to void and n=0 when rewriting to sret asm return.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user