aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-04-10 23:40:06 -0700
committerMichael Forney <mforney@mforney.org>2019-04-10 23:40:06 -0700
commit8f8fd768089ae3ac82fd421b1ebd1a80f9fca5fc (patch)
tree7e2e06e01aef86ef0d24879c3cd02fe8e34a5ddd
parentdf9d6fff44ac36fb7f24995494ae46d102a57e7c (diff)
downloadcproc-8f8fd768089ae3ac82fd421b1ebd1a80f9fca5fc.tar.xz
type: unions are object types
-rw-r--r--type.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/type.c b/type.c
index e0cde2d..e458c19 100644
--- a/type.c
+++ b/type.c
@@ -117,6 +117,9 @@ typeprop(struct type *t)
case TYPESTRUCT:
p |= PROPOBJECT|PROPAGGR;
break;
+ case TYPEUNION:
+ p |= PROPOBJECT;
+ break;
default:
break;
}