Allow values left on the stack at the end of the procedure (it's legal!).
authorDavid Given <dg@cowlark.com>
Mon, 14 Nov 2016 20:47:49 +0000 (21:47 +0100)
committerDavid Given <dg@cowlark.com>
Mon, 14 Nov 2016 20:47:49 +0000 (21:47 +0100)
mach/proto/mcg/treebuilder.c

index b0ef5ba..fcd1361 100644 (file)
@@ -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)