From 87cf5431f3ed9ed5fa4a8b99cd5b9582ebff23ae Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sat, 4 Apr 2020 21:47:22 -0700 Subject: type: Remove unnecessary check for TYPEVOID There is only one type with this kind, so the equality check above suffices. --- type.c | 2 -- 1 file changed, 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: -- cgit v1.2.3