From e5ed3b20351a2715fe88d9a5dbcc8e6757fe96aa Mon Sep 17 00:00:00 2001 From: lemon Date: Wed, 24 Aug 2022 06:46:23 +0200 Subject: llvm defer and more --- src/type.cff | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/type.cff') diff --git a/src/type.cff b/src/type.cff index 194ff01..3feb14c 100644 --- a/src/type.cff +++ b/src/type.cff @@ -295,14 +295,14 @@ extern fn typeof2(a *const Type, b *const Type) *const Type { if uac == ubc { return akonst ? a : b; } - if uac == ty_void { - if bkonst and !akonst { return constifychild(a); } - return a; - } - if ubc == ty_void { - if akonst and !bkonst { return constifychild(b); } + if uac->is(:Void) { + if !bkonst and akonst { return constifychild(b); } return b; } + if ubc->is(:Void) { + if !akonst and bkonst { return constifychild(a); } + return a; + } } return #null; } -- cgit v1.2.3