aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index b65f760a7..59151fb12 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -623,6 +623,7 @@ void check_assignment(Checker *c, Operand *operand, Type *type, String context_n
if (operand->mode == Addressing_Invalid) {
return;
}
+
#if 0
if (operand->mode == Addressing_Type) {
Type *t = base_type(type);
@@ -665,6 +666,7 @@ void check_assignment(Checker *c, Operand *operand, Type *type, String context_n
}
}
+
if (type == nullptr) {
return;
}