From 062127b68f195475968f7b6e0e3c9bd055a9d590 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Mon, 5 Dec 2022 09:13:15 -0500 Subject: [PATCH] fixed declarations of module init functions. Imports are now mostly functional --- cerise/backend/ssa/codegen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cerise/backend/ssa/codegen.c b/cerise/backend/ssa/codegen.c index 66ae53a..8d552ab 100644 --- a/cerise/backend/ssa/codegen.c +++ b/cerise/backend/ssa/codegen.c @@ -174,7 +174,7 @@ void codegen_symbol(Parser* p, Symbol* sym) } else if (sym->class == SYM_MODULE) { - if (sym->module == 0) + if (!sym->forward) { printf("define "); } -- 2.49.0