diff options
author | Michael Forney <mforney@mforney.org> | 2020-04-04 21:47:22 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2020-04-04 21:47:22 -0700 |
commit | 87cf5431f3ed9ed5fa4a8b99cd5b9582ebff23ae (patch) | |
tree | b7a196051a0190931454735d32150b29b9f10409 /type.c | |
parent | 65290cc659feafddf5881ec34a3b5e7987dfb07f (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.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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: |