aboutsummaryrefslogtreecommitdiff
path: root/type.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-04-04 21:47:22 -0700
committerMichael Forney <mforney@mforney.org>2020-04-04 21:47:22 -0700
commit87cf5431f3ed9ed5fa4a8b99cd5b9582ebff23ae (patch)
treeb7a196051a0190931454735d32150b29b9f10409 /type.c
parent65290cc659feafddf5881ec34a3b5e7987dfb07f (diff)
type: Remove unnecessary check for TYPEVOID
There is only one type with this kind, so the equality check above suffices.
Diffstat (limited to 'type.c')
-rw-r--r--type.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/type.c b/type.c
index fef891d..87f8094 100644
--- a/type.c
+++ b/type.c
@@ -131,8 +131,6 @@ typecompatible(struct type *t1, struct type *t2)
t1->basic.issigned == t2->basic.issigned;
}
switch (t1->kind) {
- case TYPEVOID:
- return true;
case TYPEPOINTER:
goto derived;
case TYPEARRAY: