Fix array bounds checking

This commit is contained in:
Ginger Bill committed 2016-09-12 23:16:06 +01:00
1 parent d4ba6b5466
commit 59fb74d2a2
8 files changed
+264 -199

No files matched your search

+4
View File
@@ -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)) {