aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-08-04 00:10:05 +0100
committergingerBill <bill@gingerbill.org>2021-08-04 00:10:05 +0100
commit1f79082921b5f1e530b013b7b63a5f50f2bc7e7d (patch)
tree64d276bfdd75b1574f9e6f43ba389a2137323c09 /src/check_expr.cpp
parentafff9478c8a699050dd2899c4e929f56717c9243 (diff)
Remove dead comments
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index 09bd5f8ed..b2cd18430 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -869,7 +869,7 @@ bool is_polymorphic_type_assignable(CheckerContext *c, Type *poly, Type *source,
}
}
if (modify_type) {
- Type *ds = default_type(source); // IMPORTANT TODO(bill): IS THIS CORRECT?
+ Type *ds = default_type(source);
gb_memmove(poly, ds, gb_size_of(Type));
}
return true;
@@ -885,9 +885,6 @@ bool is_polymorphic_type_assignable(CheckerContext *c, Type *poly, Type *source,
return false;
case Type_Array:
if (source->kind == Type_Array) {
-
- // IMPORTANT TODO(bill): Which is correct?
- // if (poly->Array.generic_count != nullptr && modify_type) {
if (poly->Array.generic_count != nullptr) {
Type *gt = poly->Array.generic_count;
GB_ASSERT(gt->kind == Type_Generic);
@@ -918,8 +915,6 @@ bool is_polymorphic_type_assignable(CheckerContext *c, Type *poly, Type *source,
return is_polymorphic_type_assignable(c, poly->Array.elem, source->Array.elem, true, modify_type);
}
} else if (source->kind == Type_EnumeratedArray) {
- // IMPORTANT TODO(bill): Which is correct?
- // if (poly->Array.generic_count != nullptr && modify_type) {
if (poly->Array.generic_count != nullptr) {
Type *gt = poly->Array.generic_count;
GB_ASSERT(gt->kind == Type_Generic);