harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 432a0d63a3e351f2d398f7bbf861ac232b9e4fd8
parent af61bf5346d6319745cae1917a3b28becae66205
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sun, 20 Dec 2020 17:28:53 -0500

check: add TODO for imports

Diffstat:
Msrc/check.c | 1+
Msrc/gen.c | 2+-
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/check.c b/src/check.c @@ -292,6 +292,7 @@ check(const struct ast_unit *aunit, struct unit *unit) // First pass populates the type graph for (const struct ast_subunit *su = &aunit->subunits; su; su = su->next) { + assert(!su->imports); // TODO scan_declarations(&ctx, &su->decls); } diff --git a/src/gen.c b/src/gen.c @@ -240,7 +240,7 @@ gen_function_decl(struct gen_context *ctx, const struct declaration *decl) struct qbe_value load; gen_loadtemp(ctx, &load, &rval, qdef->func.returns, - type_is_signed(fntype->func.result)); + type_is_signed(fntype->func.result)); pushi(&qdef->func, NULL, Q_RET, &load, NULL); qbe_append_def(ctx->out, qdef);