Commit Diff


commit - b0cba5f1c6851cc288cc57379e43b55501aafbcf
commit + 4efc4256d0461a3fbc9abdb3443dc7aa73e763c3
blob - 260a9c39dc958f824125ad2d0a45d984e03b84a6
blob + 8566d7c50703dc2618f31bc44f94e28fa8129567
--- cc/irc/irc.c
+++ cc/irc/irc.c
@@ -2744,9 +2744,7 @@ struct func *fn;
 		gen_ir (fn, ir);
 
 	puts (".ret:");
-	if (fn->stoff != 0)
-		printf ("\tadd sp, %d\n", -fn->stoff);
-	puts ("\tpop bp");
+	puts ("\tleave");
 	puts ("\tret");
 	puts ("");