summaryrefslogtreecommitdiff
path: root/cgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'cgen.c')
-rw-r--r--cgen.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cgen.c b/cgen.c
index 7e50024..a0bb8d7 100644
--- a/cgen.c
+++ b/cgen.c
@@ -1662,6 +1662,7 @@ static bool cgen_val_ptr(CGenerator *g, void *v, Type *t, Location where) {
switch (t->kind) {
case TYPE_TUPLE:
case TYPE_VOID:
+ case TYPE_EXPR:
case TYPE_TYPE:
assert(0);
return false;
@@ -1711,9 +1712,6 @@ static bool cgen_val_ptr(CGenerator *g, void *v, Type *t, Location where) {
case BUILTIN_BOOL: cgen_write(g, "%s", *(bool *)v ? "true" : "false"); break;
}
break;
- case TYPE_EXPR:
- assert(0);
- return false;
}
return true;
}