aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-01-03 14:45:09 +0000
committergingerBill <bill@gingerbill.org>2023-01-03 14:45:09 +0000
commit0fb3032b731b640a2d0d1d62b9f8dd548e224b0e (patch)
tree178b8cc6c72684d7f0b0041af2b5616804b31638 /src/types.cpp
parent69934c3b0b1b8ad0a499574c39c1ab177a1fe30a (diff)
General improves to `alloc_ast_node` and other unnecessary checks
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/types.cpp b/src/types.cpp
index d33c36e94..fa7c1d7f7 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -2535,13 +2535,13 @@ gb_internal bool are_types_identical_internal(Type *x, Type *y, bool check_tuple
if (x->kind == Type_Named) {
Entity *e = x->Named.type_name;
- if (e != nullptr && e->kind == Entity_TypeName && e->TypeName.is_type_alias) {
+ if (e->TypeName.is_type_alias) {
x = x->Named.base;
}
}
if (y->kind == Type_Named) {
Entity *e = y->Named.type_name;
- if (e != nullptr && e->kind == Entity_TypeName && e->TypeName.is_type_alias) {
+ if (e->TypeName.is_type_alias) {
y = y->Named.base;
}
}