cproc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/cproc
Log | Files | Refs | Submodules | README | LICENSE

commit 87cf5431f3ed9ed5fa4a8b99cd5b9582ebff23ae
parent 65290cc659feafddf5881ec34a3b5e7987dfb07f
Author: Michael Forney <mforney@mforney.org>
Date:   Sat,  4 Apr 2020 21:47:22 -0700

type: Remove unnecessary check for TYPEVOID

There is only one type with this kind, so the equality check above
suffices.

Diffstat:
Mtype.c | 2--
1 file changed, 0 insertions(+), 2 deletions(-)

diff --git 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: