summaryrefslogtreecommitdiff
path: root/types.c
diff options
context:
space:
mode:
Diffstat (limited to 'types.c')
-rw-r--r--types.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/types.c b/types.c
index abe6795..bf03f88 100644
--- a/types.c
+++ b/types.c
@@ -204,10 +204,7 @@ static bool type_is_compileonly(Type *t) {
return true;
return false;
case TYPE_STRUCT:
- arr_foreach(t->struc->fields, Field, f)
- if (type_is_compileonly(&f->type))
- return true;
- return false;
+ return false; /* structs can only have non-compileonly members */
case TYPE_EXPR: break;
}
assert(0);