aboutsummaryrefslogtreecommitdiff
path: root/src/checker/expr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/checker/expr.cpp')
-rw-r--r--src/checker/expr.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/checker/expr.cpp b/src/checker/expr.cpp
index 9d83cca69..0c89d1580 100644
--- a/src/checker/expr.cpp
+++ b/src/checker/expr.cpp
@@ -52,6 +52,10 @@ b32 check_is_assignable_to(Checker *c, Operand *operand, Type *type, b32 is_argu
return true;
}
+ if (operand->mode == Addressing_Builtin) {
+ return false;
+ }
+
Type *s = operand->type;
if (are_types_identical(s, type)) {