From 0289b1004ead089ab2a1ccab33102e61a3fba4b8 Mon Sep 17 00:00:00 2001 From: David Given Date: Mon, 14 Nov 2016 21:47:49 +0100 Subject: [PATCH] Allow values left on the stack at the end of the procedure (it's legal!). --- mach/proto/mcg/treebuilder.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mach/proto/mcg/treebuilder.c b/mach/proto/mcg/treebuilder.c index b0ef5ba87..fcd13611c 100644 --- a/mach/proto/mcg/treebuilder.c +++ b/mach/proto/mcg/treebuilder.c @@ -1643,7 +1643,8 @@ static void generate_tree(struct basicblock* bb) print_stack(); } - assert(stackptr == 0); + /* Yes, we are allowed to leave stuff on the stack at the end of the procedure. + * It's discarded as part of the function return. */ } void tb_procedure(void)