aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-02-18 23:03:07 -0800
committerMichael Forney <mforney@mforney.org>2019-02-18 23:03:07 -0800
commit8c3315e5119452b48978abaf955deaabdfd015de (patch)
treef6eab04beba3650dc07f3c233bad85a7a3b70368
parent608c11d269d2ee74ea64906e627b36d1a50d01c0 (diff)
void is an incomplete type
-rw-r--r--type.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/type.c b/type.c
index 224153b..97def21 100644
--- a/type.c
+++ b/type.c
@@ -7,7 +7,7 @@
#include "backend.h"
#include "type.h"
-struct type typevoid = {.kind = TYPEVOID};
+struct type typevoid = {.kind = TYPEVOID, .incomplete = true};
struct type typechar = {.kind = TYPEBASIC, .size = 1, .align = 1, .repr = &i8, .basic = {.kind = BASICCHAR, .issigned = 1}};
struct type typeschar = {.kind = TYPEBASIC, .size = 1, .align = 1, .repr = &i8, .basic = {.kind = BASICCHAR, .issigned = 1}};