diff options
| author | 2022-08-24 06:46:23 +0200 | |
|---|---|---|
| committer | 2022-08-24 06:46:23 +0200 | |
| commit | e5ed3b20351a2715fe88d9a5dbcc8e6757fe96aa (patch) | |
| tree | 7333f357bc38ed389e8845d59196594377dc46d6 /src/type.cff | |
| parent | 039ab20bbf6b68c423f420be2481b447d85c606b (diff) | |
llvm defer and more
Diffstat (limited to 'src/type.cff')
| -rw-r--r-- | src/type.cff | 12 |
1 files changed, 6 insertions, 6 deletions
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; } |