summaryrefslogtreecommitdiff
path: root/cgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'cgen.c')
-rw-r--r--cgen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cgen.c b/cgen.c
index ba14ebb..b78c5e0 100644
--- a/cgen.c
+++ b/cgen.c
@@ -1133,6 +1133,7 @@ static void cgen_expr_pre(CGenerator *g, Expression *e) {
if (e->new.n) cgen_expr_pre(g, e->new.n);
break;
case EXPR_VAL:
+ /* TODO: don't make a variable for this if it's not needed */
if (type_is_compileonly(&e->type))
break;
cgen_val_pre(g, e->val, &e->type, e->where);